parameters: (self, event)
docstring: Deletes all views and documents. If no user input cancelled the
          operation, the frame will be destroyed and the application will exit.
docstring_summary: Deletes all views and documents. If no user input cancelled the
          operation, the frame will be destroyed and the application will exit.
docstring_tokens: Deletes all views and documents . If no user input cancelled the operation the frame will be destroyed and the application will exit .
function: def OnCloseWindow(self, event):
          """
          Deletes all views and documents. If no user input cancelled the
          operation, the frame will be destroyed and the application will exit.
          """
          if self._docManager.Clear(not event.CanVeto()):
              self.Destroy()
          else:
              event.Veto()
function_tokens: def OnCloseWindow ( self , event ) : if self . _docManager . Clear ( not event . CanVeto ( ) ) : self . Destroy ( ) else : event . Veto ( )