(self, event=None)
Set dialog result to None and destroy tk widget.
Set dialog result to None and destroy tk widget.
Set dialog result to None and destroy tk widget .
def cancel(self, event=None):  # Do not replace.
        "Set dialog result to None and destroy tk widget."
        self.result = None
        self.destroy()
def cancel ( self , event = None ) : # Do not replace. self . result = None self . destroy ( )