Michael Lange napsal(a):
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:
  
Hi Michael,

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()
   
-- 
(w2000, py2.4)
Pavel Kosina
_______________________________________________
Tkinter-discuss mailing list
[email protected]
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to