parameters: (self, event)
docstring: Handles the ``EVT_AUINOTEBOOK_PAGE_CHANGED`` event.
  
          :param `event`: a :class:`~lib.agw.aui.auibook.AuiNotebookEvent` event to be processed.
docstring_summary: Handles the ``EVT_AUINOTEBOOK_PAGE_CHANGED`` event.
docstring_tokens: Handles the EVT_AUINOTEBOOK_PAGE_CHANGED event .
function: def OnTabSelected(self, event):
          """
          Handles the ``EVT_AUINOTEBOOK_PAGE_CHANGED`` event.
  
          :param `event`: a :class:`~lib.agw.aui.auibook.AuiNotebookEvent` event to be processed.
          """
  
          if self._masterManager:
              self._masterManager.OnTabSelected(event)
              return
  
          obj = event.GetEventObject()
  
          if obj and isinstance(obj, auibook.AuiNotebook):
  
              notebook = obj
              page = notebook.GetPage(event.GetSelection())
              paneInfo = self.GetPane(page)
  
              if paneInfo.IsOk():
                  notebookRoot = GetNotebookRoot(self._panes, paneInfo.notebook_id)
                  if notebookRoot:
  
                      notebookRoot.Caption(paneInfo.caption)
                      self.RefreshCaptions()
  
          event.Skip()
function_tokens: def OnTabSelected ( self , event ) : if self . _masterManager : self . _masterManager . OnTabSelected ( event ) return obj = event . GetEventObject ( ) if obj and isinstance ( obj , auibook . AuiNotebook ) : notebook = obj page = notebook . GetPage ( event . GetSelection ( ) ) paneInfo = self . GetPane ( page ) if paneInfo . IsOk ( ) : notebookRoot = GetNotebookRoot ( self . _panes , paneInfo . notebook_id ) if notebookRoot : notebookRoot . Caption ( paneInfo . caption ) self . RefreshCaptions ( ) event . Skip ( )