| Trees | Index | Help |
|
|---|
| Package pyAA :: Module Watcher :: Class WindowWatcher |
|
object--+ |AAbase--+ |Watcher--+ | WindowWatcher
| Method Summary | |
|---|---|
Initialize an instance. | |
Defer.Deferred
|
Set a hook to watch for a window close event. |
Defer.Deferred
|
Set a hook to watch for a window open event. |
Called when the target window is destroyed. | |
Called when the target window appears and has the focus. | |
| boolean |
Compares the window class of the provided object to the target window class. |
Compares the features of the target window to the object that fired the event. | |
| boolean |
Compares the lowercase title of the provided object to the lowercase target window title. |
Inherited from Watcher:
Destroy
Inherited from AAbase:
AddReleaseHook,
AddWinEventHook,
Release
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
| |
| Instance Variable Summary | |
|---|---|
| dictionary | dispatch: Dispatch to methods used for comparing window properties |
| dictionary | features: Properties identifying the target window |
Inherited from Watcher:
result
Inherited from AAbase:
release_hooks
| |
| Method Details |
|---|
__init__(self)
Initialize an instance.
|
NotifyOnClose(self, hwnd)Set a hook to watch for a window close event.
|
NotifyOnOpen(self, title=None, cls=None)Set a hook to watch for a window open event. Also watches for existing windows getting raised to the foreground.
|
OnDestroyEvent(self, event)Called when the target window is destroyed.
|
OnShowEvent(self, event)Called when the target window appears and has the focus.
|
TestClass(self, ao, target_class)Compares the window class of the provided object to the target window class.
|
TestFeatures(self, ao)Compares the features of the target window to the object that fired the event.
|
TestTitle(self, ao, target_title)Compares the lowercase title of the provided object to the lowercase target window title.
|
| Instance Variable Details |
|---|
dispatchDispatch to methods used for comparing window properties
|
featuresProperties identifying the target window
|
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Mar 10 23:08:34 2005 | http://epydoc.sf.net |