[Tkinter-discuss] Tkinter (IDLE) freeze when I try to use ttk

Cameron Laird Cameron at phaseit.net
Sun Jul 11 13:58:44 CEST 2010


On Sun, Jul 11, 2010 at 10:07:30AM +0200, Sibylle Koczian wrote:
			.
			.
			.
> Von: Guido Carballo-Guerrero <charras at me.com>
> >No my problem is that I can't use Python's IDLE. Well, I can only open one window at a time. If I try to open a new window to make a program, Python freeze. Some curios, if that if I don't have Python open, and double click on a program, Python opens the IDLE and the program in to separate windows without a problem, but when I try to run the program it freeze.
> >
> >I guess that this is a bug somewhere in the ttk implementation, or in Python. Do you guys have any idea how can I solve this? Or have anybody update Python to 2.7, and use ttk on a Mac? If so, please let me know how you manage to do it.
> >
> As far as I know this is just because IDLE is written in tkinter. So if you try to run another tkinter application from IDLE, the two mainloop() calls interfere with each other. You should be able to run console applications from IDLE, but with tkinter applications you can develop them using IDLE but run them from a console (or whatever is used as a console on a Mac). It's nothing to do with the Python version or with ttk and I doubt it can be called a bug.
			.
			.
			.
If one is clever and motivated, it's possible to code a Tkinter
application in a way that permits it to be run (apparently)
within IDLE.  I don't think I've ever seen it documented well
...  All that Sibylle Koczian writes is true, though, and, in
particular, a conventional Tkinter application simply is incom-
patible with IDLE.


More information about the Tkinter-discuss mailing list