Trouble with Tkinter under IDLE

Anthony Lander alander at nortelnetworks.com
Wed Apr 12 00:00:49 CEST 2000


tjg at avalongroup.net (Timothy Grant) wrote in 
<38F37BF9.DCAB3570 at exceptionalminds.com>:

>I believe that the solution is *not* to call mainloop() from your
>programme as it is conflicting with the mainloop() of IDLE. Though I
>don't use IDLE, I do believe that the mainloop in IDLE will allow your
>code to run correctly without you calling it.

Indeed. That seems to be the case.


Looking through the Tkinter.py source, it seems that there is a variable 
called _default_root which wants to be set to the default root window. Is 
the normal procedure to check this variable and use it as the root window 
if it's defined?

 thanks,

 anthony



More information about the Python-list mailing list