Y
yvesd
For a bit more help about my previous message (outlook bar)
does anybody know how to reparent or change a widget(button)'s owner
in tkinter ?
here's my code that doesn't work :
def inverse(self):
if (self.texte=="top"):
self.texte="bottom"
btn = self
btn.pack_forget()
btn.configure(parent = self.top, text=self.texte)
btn.pack(side=TOP,fill=X,expand=1)
else:
self.texte="top"
btn = self
btn.pack_forget()
btn.configure(parent=self.bottom, text=self.texte)
btn.parent = None
btn.pack(side=BOTTOM,fill=X,expand=1)
does anybody know how to reparent or change a widget(button)'s owner
in tkinter ?
here's my code that doesn't work :
def inverse(self):
if (self.texte=="top"):
self.texte="bottom"
btn = self
btn.pack_forget()
btn.configure(parent = self.top, text=self.texte)
btn.pack(side=TOP,fill=X,expand=1)
else:
self.texte="top"
btn = self
btn.pack_forget()
btn.configure(parent=self.bottom, text=self.texte)
btn.parent = None
btn.pack(side=BOTTOM,fill=X,expand=1)