Hi Jim,
The problem with your code is that Tk's mainloop continues to run
even though you have closed the window. The cleaner way to close
such a GUI program is to explicitly stop the main loop and the
Python interpreter at the appropriate time.
In this particular case, you may provid
"Jim Morcombe" <[EMAIL PROTECTED]> wrote
> I run it, (By pressing F5 from IDLE), it displays the "Hello world"
> message.
Don't run GUI programs from within IDLE is the best advice I can give.
It's a lot better than it was and at least they run now but IDLE still
catches
too many keystrokes and
Oops! Here's the program:
---
from Tkinter import *
root = Tk()
z = Label(root, text="Hello World!")
z.grid()
root.mainloop()
--
Jim
- Original Message -
From: Jim Morcombe
To: python tutor mailing list
Sent: Friday, De