parameters: (self, event)
docstring: Handles the ``wx.EVT_CHILD_FOCUS`` event for :class:`AuiManager`.
  
          :param `event`: a :class:`ChildFocusEvent` to be processed.
docstring_summary: Handles the ``wx.EVT_CHILD_FOCUS`` event for :class:`AuiManager`.
docstring_tokens: Handles the wx . EVT_CHILD_FOCUS event for : class : AuiManager .
function: def OnChildFocus(self, event):
          """
          Handles the ``wx.EVT_CHILD_FOCUS`` event for :class:`AuiManager`.
  
          :param `event`: a :class:`ChildFocusEvent` to be processed.
          """
  
          # when a child pane has it's focus set, we should change the
          # pane's active state to reflect this. (this is only true if
          # active panes are allowed by the owner)
  
          window = event.GetWindow()
          if isinstance(window, wx.Dialog):
              # Ignore EVT_CHILD_FOCUS events originating from dialogs not
              # managed by AUI
              rootManager = None
          elif isinstance(window.GetParent(), AuiFloatingFrame):
              rootManager = GetManager(window)
          else:
              rootManager = self
  
          if rootManager:
              rootManager.ActivatePane(window)
  
          event.Skip()
function_tokens: def OnChildFocus ( self , event ) : # when a child pane has it's focus set, we should change the # pane's active state to reflect this. (this is only true if # active panes are allowed by the owner) window = event . GetWindow ( ) if isinstance ( window , wx . Dialog ) : # Ignore EVT_CHILD_FOCUS events originating from dialogs not # managed by AUI rootManager = None elif isinstance ( window . GetParent ( ) , AuiFloatingFrame ) : rootManager = GetManager ( window ) else : rootManager = self if rootManager : rootManager . ActivatePane ( window ) event . Skip ( )