(self, text, searchphrase=None)
Make dialog visible on top of others and ready to use.
Make dialog visible on top of others and ready to use.
Make dialog visible on top of others and ready to use .
def open(self, text, searchphrase=None):
        "Make dialog visible on top of others and ready to use."
        self.text = text
        if not self.top:
            self.create_widgets()
        else:
            self.top.deiconify()
            self.top.tkraise()
        self.top.transient(text.winfo_toplevel())
        if searchphrase:
            self.ent.delete(0,"end")
            self.ent.insert("end",searchphrase)
        self.ent.focus_set()
        self.ent.selection_range(0, "end")
        self.ent.icursor(0)
        self.top.grab_set()
def open ( self , text , searchphrase = None ) : self . text = text if not self . top : self . create_widgets ( ) else : self . top . deiconify ( ) self . top . tkraise ( ) self . top . transient ( text . winfo_toplevel ( ) ) if searchphrase : self . ent . delete ( 0 , "end" ) self . ent . insert ( "end" , searchphrase ) self . ent . focus_set ( ) self . ent . selection_range ( 0 , "end" ) self . ent . icursor ( 0 ) self . top . grab_set ( )