(self, controller)
Activates a sub-controller.
Activates a sub-controller.
Activates a sub - controller .
def _activate(self, controller):
    """Activates a sub-controller."""
    if controller == self._active_ctrl:
      return

    if self._active_ctrl is not None:
      self._active_ctrl.deactivate()
    self._active_ctrl = controller
    if self._active_ctrl is not None:
      self._active_ctrl.activate()
def _activate ( self , controller ) : if controller == self . _active_ctrl : return if self . _active_ctrl is not None : self . _active_ctrl . deactivate ( ) self . _active_ctrl = controller if self . _active_ctrl is not None : self . _active_ctrl . activate ( )