(self)
Unregister operations and revert redirection created by .__init__.
Unregister operations and revert redirection created by .__init__.
Unregister operations and revert redirection created by . __init__ .
def close(self):
        "Unregister operations and revert redirection created by .__init__."
        for operation in list(self._operations):
            self.unregister(operation)
        widget = self.widget
        tk = widget.tk
        w = widget._w
        # Restore the original widget Tcl command.
        tk.deletecommand(w)
        tk.call("rename", self.orig, w)
        del self.widget, self.tk
def close ( self ) : for operation in list ( self . _operations ) : self . unregister ( operation ) widget = self . widget tk = widget . tk w = widget . _w # Restore the original widget Tcl command. tk . deletecommand ( w ) tk . call ( "rename" , self . orig , w ) del self . widget , self . tk