parameters: (self, event)
docstring: Handles the ``wx.EVT_KILL_FOCUS`` event for :class:`RibbonPanel`.
  
          :param `event`: a :class:`FocusEvent` event to be processed.
docstring_summary: Handles the ``wx.EVT_KILL_FOCUS`` event for :class:`RibbonPanel`.
docstring_tokens: Handles the wx . EVT_KILL_FOCUS event for : class : RibbonPanel .
function: def OnKillFocus(self, event):
          """
          Handles the ``wx.EVT_KILL_FOCUS`` event for :class:`RibbonPanel`.
  
          :param `event`: a :class:`FocusEvent` event to be processed.
          """
  
          if self._expanded_dummy:
              receiver = event.GetWindow()
              
              if IsAncestorOf(self, receiver):            
                  self._child_with_focus = receiver
                  receiver.Bind(wx.EVT_KILL_FOCUS, self.OnChildKillFocus)
                  
              elif receiver is None or receiver != self._expanded_dummy:
                  self.HideExpanded()
function_tokens: def OnKillFocus ( self , event ) : if self . _expanded_dummy : receiver = event . GetWindow ( ) if IsAncestorOf ( self , receiver ) : self . _child_with_focus = receiver receiver . Bind ( wx . EVT_KILL_FOCUS , self . OnChildKillFocus ) elif receiver is None or receiver != self . _expanded_dummy : self . HideExpanded ( )