(self, window=None)
Wait until a WIDGET is destroyed.

        If no parameter is given self is used.
Wait until a WIDGET is destroyed.
Wait until a WIDGET is destroyed .
def wait_window(self, window=None):
        """Wait until a WIDGET is destroyed.

        If no parameter is given self is used."""
        if window is None:
            window = self
        self.tk.call('tkwait', 'window', window._w)
def wait_window ( self , window = None ) : if window is None : window = self self . tk . call ( 'tkwait' , 'window' , window . _w )