469,362 Members | 2,450 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,362 developers. It's quick & easy.

Is python2.5's Tix wrapper broken?

I have a piece of software I wrote some time ago using Python and the Tix
wrapper. I just upgraded to Python 2.5 and to my surprise my software no
longer functions. There's a problem with the Tix wrapper. Under a clean
install of Python the following should display an empty root window on the
screen and happily.
>>import Tix
root = Tix.Tk()
Under Python2.5, the empty root window is displayed but I also get a
Traceback:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python25\lib\lib-tk\Tix.py", line 210, in __init__
self.tk.eval('package require Tix')
_tkinter.TclError: can't find package Tix

Of course I can fix this with a cheap try block, but wonder if there's a
better way.

try:
root = Tix.Tk()
except:
print "Tk exception caught"

Is Tix now broken or is there a new "proper" way to get a Tk root window?

Thanks,
Ron
Feb 14 '07 #1
1 1943
En Tue, 13 Feb 2007 22:10:54 -0300, Ron Provost <ro****@cox.netescribió:
Under Python2.5, the empty root window is displayed but I also get a
Traceback:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python25\lib\lib-tk\Tix.py", line 210, in __init__
self.tk.eval('package require Tix')
_tkinter.TclError: can't find package Tix
It's a bug, already reported: http://www.python.org/sf/1568240
--
Gabriel Genellina

Feb 14 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Nicola Mingotti | last post: by
2 posts views Thread by Markus Doering | last post: by
12 posts views Thread by Egil M?ller | last post: by
reply views Thread by andrew.gregory | last post: by
5 posts views Thread by Rotem | last post: by
reply views Thread by Julien Biezemans | last post: by
3 posts views Thread by gordon | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.