Tkinter development with IDLE problem

Simon Brunning sbrunning at
Tue May 30 13:36:41 CEST 2000

I'm sure that this must be in the documentation or FAQ somewhere,
but I can't seem to find it. Anyway - stupid question:

I've just started working through the Tkinter tutorial at
<>. The first example is a 'Hello world'
thing, as you would expect:

from Tkinter import *
root = Tk()
w = Label(root, text='Hello, world!')

Now, if I open this .py file with IDLE and run it with F5, it
doesn't work - it just gives me a blank Tk window. Running it with
the standard Python interpreter works fine.

Now, I'm guessing that this is because IDLE is itself using Tkinter,
but is there an easy way of running Tkinter-using modules from IDLE,
or should I drop IDLE for Tkinter development?

Simon Brunning
TriSystems Ltd.
sbrunning at
The opinions expressed are mine, and are not necessarily those of my
employer. All comments provided "as is" with no warranties of any
kind whatsoever.

More information about the Python-list mailing list