Tkinter: Make it go away!
Phlip
phlip_cpp at my-deja.com
Wed Apr 25 17:41:43 EDT 2001
To Phyn:
from Tkinter import *
root = Tk()
lab1 = Label(root, text='simple 1')
lab1.pack()
# ???
lab2 = Label(root, text='simple 2')
lab2.pack()
root.mainloop()
When I run that, I get a window with two labels in it.
On the line with ???, what can I write to get only one label? How do I
croak an object prematurely?
--
Phlip phlip_cpp at my-deja.com
============ http://c2.com/cgi/wiki?PhlIp ============
-- Whoever dies with the most features wins --
More information about the Python-list
mailing list