By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,587 Members | 1,692 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,587 IT Pros & Developers. It's quick & easy.

Makeing TopLevel Modal ?

P: n/a
Hi all,

I want to make a dialog (using Tk Toplevel) but need it to be modal. Is
this possible using Tk ?

Show below is an example how I am calling the custom dialog:

class main:
def __init__(self,parent):

top = self.top = Toplevel(parent)
top.title("Server Settings")
top.minsize(width=230,height=270)
top.maxsize(width=230,height=270)

Pete

Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
well, top.transient(root) will ensure your toplevel window is on top of
all others.
IIRC, you could also use top.grab_set() to make it modal, but you'll
have to try it and see.

S

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.