Makeing TopLevel Modal ?

Pete Moscatt pgmoscatt at optushome.com.au
Mon Apr 4 02:51:15 EDT 2005


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




More information about the Python-list mailing list