[Tkinter-discuss] Adding/removing widgets from a running application?
Alexander Belchenko
bialix at ukr.net
Mon Feb 11 23:57:33 CET 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jim Kleckner пишет:
| Any pointers to what it takes to add/remove widgets
| from a running application?
Something like this maybe?
from Tkinter import *
root = Tk()
x = Label(root, text='Hello')
x.pack()
Button(root, text='Hide', command=x.pack_forget).pack()
root.mainloop()
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHsNLdzYr338mxwCURAlBBAJ4tY5IvAhjnZyEDgdK/M2lEIAdAtACffoiO
+6ofoqKvxsbrXpnd69wV018=
=C4JW
-----END PGP SIGNATURE-----
More information about the Tkinter-discuss
mailing list