overrideredirect vs. text entry etc. widget

kernus kernus at gmail.com
Wed Sep 16 01:20:15 EDT 2009


On Sep 15, 11:42 am, Sean DiZazzo <half.ital... at gmail.com> wrote:

>
> Whats interesting is that if you call overrideredirect from a button
> command, it works as expected.  Well, at least the text entry field
^^^^^^^^^^^^^^^^^so, Sean, you know how to *click this magic button in
the programming way*?
> behaves for me on Ubuntu...
>
> from Tkinter import *
>
> root = Tk()
>
> def override():
>     if root.overrideredirect():
>         root.overrideredirect(False)
>     else:
>         root.overrideredirect(True)
>
>     root.withdraw()
>     root.deiconify()
>
> Entry(root).pack()
> Button(root, text='Override', command=override).pack()
> root.mainloop()
>
> ~Sean




More information about the Python-list mailing list