parameters: (self, event)
return_statement: return NonePaneInfo
docstring: Returns a :class:`AuiPaneInfo` from a :class:`~lib.agw.aui.auibook.AuiNotebook` event.
  
          :param `event`: a :class:`~lib.agw.aui.auibook.AuiNotebookEvent` event.
docstring_summary: Returns a :class:`AuiPaneInfo` from a :class:`~lib.agw.aui.auibook.AuiNotebook` event.
docstring_tokens: Returns a : class : AuiPaneInfo from a : class : ~lib . agw . aui . auibook . AuiNotebook event .
function: def PaneFromTabEvent(self, event):
          """
          Returns a :class:`AuiPaneInfo` from a :class:`~lib.agw.aui.auibook.AuiNotebook` event.
  
          :param `event`: a :class:`~lib.agw.aui.auibook.AuiNotebookEvent` event.
          """
  
          obj = event.GetEventObject()
  
          if obj and isinstance(obj, auibook.AuiTabCtrl):
  
              page_idx = obj.GetActivePage()
  
              if page_idx >= 0:
                  page = obj.GetPage(page_idx)
                  window = page.window
                  if window:
                      return self.GetPane(window)
  
          elif obj and isinstance(obj, auibook.AuiNotebook):
  
              page_idx = event.GetSelection()
  
              if page_idx >= 0:
                  window = obj.GetPage(page_idx)
                  if window:
                      return self.GetPane(window)
  
          return NonePaneInfo
function_tokens: def PaneFromTabEvent ( self , event ) : obj = event . GetEventObject ( ) if obj and isinstance ( obj , auibook . AuiTabCtrl ) : page_idx = obj . GetActivePage ( ) if page_idx >= 0 : page = obj . GetPage ( page_idx ) window = page . window if window : return self . GetPane ( window ) elif obj and isinstance ( obj , auibook . AuiNotebook ) : page_idx = event . GetSelection ( ) if page_idx >= 0 : window = obj . GetPage ( page_idx ) if window : return self . GetPane ( window ) return NonePaneInfo