Package AccessEngine :: Module AEScript
[hide private]
[frames] | no frames]

Module AEScript

source code

Defines an AEScript class that can register tasks which will be executed in response to AEEvents and AEInput.Gestures.


Authors:
Peter Parente, Pete Brunet, Frank Zenker, Ramona Bunk, Nicole Anacker
Organizations: Copyright:

License: The BSD License. All rights reserved. This program and the accompanying materials are made available under the terms of the BSD license which accompanies this distribution, and is available at http://www.opensource.org/licenses/bsd-license.php

Classes [hide private]
  AEScript
Registers and maintains a collection of Task Functions that will execute in response to AccessEngine events and commands (AEEvents and AEInput.Gestures).
  EventScript
The EventScript class expands the AEScript class with methods, which are ment as a framework for the possible events.
Functions [hide private]
boolean
_postTimerEvent(interval, task_key, aid, weman)
Callback for timer events.
source code
Variables [hide private]
  log = logging.getLogger('AEScript')
  EVENT_KINDS = [AEEvent.CaretChange, AEEvent.ChildrenChange, AE...
Function Details [hide private]

_postTimerEvent(interval, task_key, aid, weman)

source code 
Callback for timer events. Tries to post an AEEvent for the task intended to handle the event if the task is still alive.
Parameters:
  • interval (interval) - Interval in seconds on which the timer fires.
  • task_key (tuple of string ('task name', 'script name')) - Key of the task to execute in response to the AEEvent.TimerAlert.
  • aid (opaque) - Unique identifier for the application AETier with which the timer is associated.
  • weman (weakref.proxy) - Weak reference to the AEEventManager to use to post AEEvent.TimerAlert events.
Returns: boolean
If True continue timer alerts on the interval. If False stop them.

Variables Details [hide private]

EVENT_KINDS

Value:
[AEEvent.CaretChange, AEEvent.ChildrenChange, AEEvent.FocusChange, AEE\
vent.MouseChange, AEEvent.PropertyChange, AEEvent.ScreenChange, AEEven\
t.SelectorChange, AEEvent.StateChange, AEEvent.TableChange, AEEvent.Vi\
ewChange]