parameters: (self, selection)
docstring: Fires the wxEVT_FLATNOTEBOOK_PAGE_CHANGING and wxEVT_FLATNOTEBOOK_PAGE_CHANGED events
          called from other methods (from menu selection or Smart Tabbing).
          Utility function.
docstring_summary: Fires the wxEVT_FLATNOTEBOOK_PAGE_CHANGING and wxEVT_FLATNOTEBOOK_PAGE_CHANGED events
          called from other methods (from menu selection or Smart Tabbing).
          Utility function.
docstring_tokens: Fires the wxEVT_FLATNOTEBOOK_PAGE_CHANGING and wxEVT_FLATNOTEBOOK_PAGE_CHANGED events called from other methods ( from menu selection or Smart Tabbing ) . Utility function .
function: def FireEvent(self, selection):
          """
          Fires the wxEVT_FLATNOTEBOOK_PAGE_CHANGING and wxEVT_FLATNOTEBOOK_PAGE_CHANGED events
          called from other methods (from menu selection or Smart Tabbing).
          Utility function.
          """
  
          if selection == self._iActivePage:
              # No events for the same selection
              return
          
          oldSelection = self._iActivePage
  
          event = FlatNotebookEvent(wxEVT_FLATNOTEBOOK_PAGE_CHANGING, self.GetParent().GetId())
          event.SetSelection(selection)
          event.SetOldSelection(oldSelection)
          event.SetEventObject(self.GetParent())
          
          if not self.GetParent().GetEventHandler().ProcessEvent(event) or event.IsAllowed():
          
              self.SetSelection(selection)
  
              # Fire a wxEVT_FLATNOTEBOOK_PAGE_CHANGED event
              event.SetEventType(wxEVT_FLATNOTEBOOK_PAGE_CHANGED)
              event.SetOldSelection(oldSelection)
              self.GetParent().GetEventHandler().ProcessEvent(event)
function_tokens: def FireEvent ( self , selection ) : if selection == self . _iActivePage : # No events for the same selection return oldSelection = self . _iActivePage event = FlatNotebookEvent ( wxEVT_FLATNOTEBOOK_PAGE_CHANGING , self . GetParent ( ) . GetId ( ) ) event . SetSelection ( selection ) event . SetOldSelection ( oldSelection ) event . SetEventObject ( self . GetParent ( ) ) if not self . GetParent ( ) . GetEventHandler ( ) . ProcessEvent ( event ) or event . IsAllowed ( ) : self . SetSelection ( selection ) # Fire a wxEVT_FLATNOTEBOOK_PAGE_CHANGED event event . SetEventType ( wxEVT_FLATNOTEBOOK_PAGE_CHANGED ) event . SetOldSelection ( oldSelection ) self . GetParent ( ) . GetEventHandler ( ) . ProcessEvent ( event )