parameters: (self, event)
docstring: Handles the ``wx.EVT_BUTTON`` event for the dialog.
  
          :param `event`: a :class:`CommandEvent` event to be processed.
  
          :note: This method handles the ``Cancel`` button press.
docstring_summary: Handles the ``wx.EVT_BUTTON`` event for the dialog.
docstring_tokens: Handles the wx . EVT_BUTTON event for the dialog .
function: def OnCancel(self, event):
          """
          Handles the ``wx.EVT_BUTTON`` event for the dialog.
  
          :param `event`: a :class:`CommandEvent` event to be processed.
  
          :note: This method handles the ``Cancel`` button press. 
          """
  
          self.OnClose(event)
function_tokens: def OnCancel ( self , event ) : self . OnClose ( event )