using Tkinter from IDLE

Russell Blau russblau at hotmail.com
Thu Mar 3 12:55:20 EST 2005


<neutrinman at myrealbox.com> wrote in message
news:1109870617.019317.293530 at o13g2000cwo.googlegroups.com...

> How do I use Tkinter from IDLE? Tkinter can be used from IDLE attached
> to python 2.2, IDLE 0.8. But I couldn't use from IDLE attached to
> python 2.3, IDLE 1.0.3. When I execute the code below:

> from Tkinter import *
> root = Tk()

> the window appears form IDLE 0.8, but not from IDLE 1.0.3.

Add the line:

root.mainloop()

at the end of your code.


-- 
I don't actually read my hotmail account, but you can replace hotmail with
excite if you really want to reach me.






More information about the Python-list mailing list