Package AccessEngine :: Module AEMain' :: Class _AEMain
[hide private]
[frames] | no frames]

Class _AEMain

source code

object --+
         |
        _AEMain

Starts the main bonobo loop so that AT-SPI events are received and GUI monitors function properly.

Allows clients to register for callbacks from the main loop on a set interval.

Instance Methods [hide private]
 
__init__(self)
Create an AEMain Object.
source code
 
_init(self, profile, application_state)
Calls init on each manager.
source code
 
_close(self)
Shuts down all managers.
source code
 
quit(self, *args)
Stops the event loop by calling the pyatspi.Registry.stop function.
source code
 
addTimer(self, callback, ms=None, *args)
Creates a timer that calls the given callback on the interval specified by the given milliseconds.
source code
 
removeTimer(self, callback)
Ceases calls to the given registered callback.
source code
 
run(self, profile, welcome, application_state)
Starts an event loop by calling the pyatspi.Registry.start function.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Instance Variables [hide private]
boolean alive
alive flag
dictionary callbacks
Callback IDs for functions to invoke on timers or idle using gobject
boolean welcome
Output an introductory message when the engine starts?
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Create an AEMain Object.
Overrides: object.__init__

_init(self, profile, application_state)

source code 

Calls init on each manager.

Manager: AEDeviceManager, AEEventManager, AESettingsManager, AETierManager, AEViewManager

Called implicitly by run.
Parameters:
  • profile (string) - Name of the profile SUE was executed under
  • application_state (AESate) - defines the settings for this application

_close(self)

source code 

Shuts down all managers.

Called implicitly by run when the main loop ends. Sends an exiting message to the default device.

quit(self, *args)

source code 

Stops the event loop by calling the pyatspi.Registry.stop function.

Extra parameters are ignored but captured by args so that this method may be registered as a signal handler callback.

addTimer(self, callback, ms=None, *args)

source code 
Creates a timer that calls the given callback on the interval specified by the given milliseconds. If ms is None, registers for callbacks on idle.
Parameters:
  • callback (callable) - Function to call
  • ms (integer) - interval in milliseconds
  • args (list) - Additional arguments to be given to the callback

removeTimer(self, callback)

source code 
Ceases calls to the given registered callback.
Parameters:
  • callback (callable) - Function to stop calling
Raises:
  • KeyError - When the callback is not registered

run(self, profile, welcome, application_state)

source code 

Starts an event loop by calling the pyatspi.Registry.start function.

Makes the timer callbacks registered via addTimer on each iteration of the loop.
Parameters:
  • profile (string) - Name of the profile SUE was executed under
  • welcome (boolean) - Output an introductory message?
  • application_state (AESate) - defines the settings for this application