In article <[EMAIL PROTECTED]>, Alexander Belchenko <[EMAIL PROTECTED]> wrote:
> -----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() Or if you use the gridder you can remove things temporary and restore them again easily: x.grid(row=0....) x.grid_remove() # to temporarily remove x.grid() # to restore using the original grid settings x.grid_forget() # to remove permanently (remove is not supported by the packer) -- Russell
_______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss