[Tutor] A simple problem with Tkinter

Mark Kels Mark.Kels at gmail.com
Thu Sep 30 16:08:11 CEST 2004


hello,

I wrote this basic Tkinter code:

from Tkinter import *
root=Tk()
w=Label(root,text="Hello!!")
b=Button(root,text="Bye",command='exit')
root.mainloop()

But the output is an empty TK window (without the text and the button)...
What is the problem ?


More information about the Tutor mailing list