On Sun, 09 Apr 2006 07:41:25 +0200
Pavel Kosina <[EMAIL PROTECTED]> wrote:
>
> I am afraid it doesnt work, at least as I can understand it. I still can
> activate the root window.
>
> from Tkinter import *
>
> def OK():
> top=Toplevel(root)
> top.transient(root)
> top.focus()
> helpText=Label(top,text="Help")
> helpText.pack()
> top.mainloop()
>
>
> root=Tk()
> helpButton=Button(text="Help", command=OK)
> helpButton.pack()
>
> root.mainloop()
>
Hi Pavel,
transient() only makes the Toplevel stay on top of the root window, if you do
not want
the root window to receive any events you need to call grab_set(), too:
top.transient(root)
top.grab_set()
HTH
Michael
_______________________________________________
Tkinter-discuss mailing list
[email protected]
http://mail.python.org/mailman/listinfo/tkinter-discuss