Tkinter hangs on mainloop

mrfusion at bigfoot.com mrfusion at bigfoot.com
Tue Apr 20 02:19:21 EDT 1999


Hi,
	I've done a complete install of python ver 1.5.2 on my
windows98 system and I've run into a problem with Tkinter (no big
surprise!)  I can import it with the line :  from Tkinter import *
Everything seems to be fine so far.  I add a few more lines:

widget = Lable(None, text = 'Hello')
widget.pack()

Everything  great so far.....

widget.mainloop()

It hangs.  If I wait for a while and then hit Ctr-C I get the
following error:

Traceback (innermost last):
	File "<stdin>", line 1, in ?
	File "k:\python\lib\lib-tk\Tkinter.py", line 492, in mainloop
	  self.tk.mainloop(n)
KeyboardInterrupt


This happens whenever I try to run a program that uses Tkinter.
For some reason I can get the tkFileDialog.py and the
tkColorChooser.py  to run alright but nothing else......very weird.

Can anyone offer insight to this baffling problem??

Thank you so much,

Tom







More information about the Python-list mailing list