parameters: (self, event)
docstring: Respond to the "Revert" menu command.
docstring_summary: Respond to the "Revert" menu command.
docstring_tokens: Respond to the Revert menu command .
function: def doRevert(self, event):
          """ Respond to the "Revert" menu command.
          """
          if not self.dirty: return
  
          if wx.MessageBox("Discard changes made to this document?", "Confirm",
                          style = wx.OK | wx.CANCEL | wx.ICON_QUESTION,
                          parent=self) == wx.CANCEL: return
          self.loadContents()
function_tokens: def doRevert ( self , event ) : if not self . dirty : return if wx . MessageBox ( "Discard changes made to this document?" , "Confirm" , style = wx . OK | wx . CANCEL | wx . ICON_QUESTION , parent = self ) == wx . CANCEL : return self . loadContents ( )