[Tkinter-discuss] a Tkinter pack problem
Stewart Midwinter
stewart.midwinter at gmail.com
Wed Jan 19 17:41:08 CET 2005
Salut Jimmy:
svp écrire en français s'il est plus facile...
the easy way to move widgets is to not move them! Simply create them
in each location you need them, and then make them invisible or
invisible as needed.
Very quickly, I tried a couple of lines and this seems to work (on win2k):
#testmove.py
from Tkinter import *
a=Tk()
b=Frame(a)
b.pack()
c=Toplevel(a)
d=Frame(c)
d.pack()
e1=Button(a, text="[]")
e1.pack()
e2=Button(c, text="[]")
a.update()
a.after(5000, e1.forget())
a.update()
e2.pack()
c.update()
a.mainloop()
--
Stewart Midwinter
stewart at midwinter.ca
stewart.midwinter at gmail.com
More information about the Tkinter-discuss
mailing list