def METHOD_NAME(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  # Should not be needed
    # if instance is deleted after close, as in Percolator.