[Tkinter-discuss] toplevel on top
Michael Lange
klappnase at web.de
Sat Apr 8 23:54:44 CEST 2006
On Sat, 08 Apr 2006 19:10:54 +0200
Pavel Kosina <geon at post.cz> wrote:
> How to make Toplevel window (with some options to be set in it) to stay
> really on top unless its button OK (destroy) is pressed? In other words
> - its parent couldnt be activated.
>
Hi Pavel,
you need to call the Toplevel's transient() method:
>>> from Tkinter import *
>>> r=Tk()
>>> t=Toplevel(r)
>>> t.transient(r)
HTH
Michael
More information about the Tkinter-discuss
mailing list