ps tkinter

yvesd yves.delalande at gmail.com
Wed Feb 7 07:40:33 EST 2007


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)




More information about the Python-list mailing list