def METHOD_NAME(self):
    for operation in list(self._operations):
        self.unregister(operation)
    widget = self.widget; del self.widget
    orig = self.orig; del self.orig
    tk = widget.tk
    w = widget._w
    tk.deletecommand(w)
    # restore the original widget Tcl command:
    tk.call("rename", orig, w)