Manager
This module definse the Manager class subclasses by component.BaseComponent
none
Manager
This is the base Manager of the BaseComponent which manages an Event Queue, a set of Event Handlers, Channels, Tick Functions, Registered and Hidden Components, a Task and the Running State.
Variables: | manager – The Manager of this Component or Manager |
---|
initializes x; see x.__class__.__doc__ for signature
Return the name of this Component/Manager
Return the running state of this Component/Manager
Return the current state of this Component/Manager
Add a new Event Handler
Add a new Event Handler to the Event Manager.
Deprecated in 1.6
Deprecated since version 1.6: Use addHandler() instead.
Remove an Event Handler
Remove the given Event Handler from the Event Manager removing it from the given channel. if channel is None, remove it from all channels. This will succeed even if the specified handler has already been removed.
Deprecated in 1.6
Deprecated since version 1.6: Use removeHandler() instead.
Fire/Push a new Event into the system (queue)
This will push the given Event, Channel and Target onto the Event Queue for later processing.
if target is None, then target will be set as the Channel of the current Component, self.channel (defaulting back to None).
If this Component’s Manager is itself, enqueue on this Component’s Event Queue, otherwise enqueue on this Component’s Manager.
Parameters: |
|
---|
@keyword target: The target Component’s channel this Event is bound for :type target: str or Component
Fire/Push a new Event into the system (queue)
This will push the given Event, Channel and Target onto the Event Queue for later processing.
if target is None, then target will be set as the Channel of the current Component, self.channel (defaulting back to None).
If this Component’s Manager is itself, enqueue on this Component’s Event Queue, otherwise enqueue on this Component’s Manager.
Parameters: |
|
---|
@keyword target: The target Component’s channel this Event is bound for :type target: str or Component
Flush all Events in the Event Queue
Flush all Events in the Event Queue
none
none