Package dogtail :: Module procedural :: Class Action
[hide private]
[frames] | no frames]

Class Action

source code

object --+        
         |        
 FocusBase --+    
             |    
   FocusWidget --+
                 |
                Action
Known Subclasses:

Aids in executing AT-SPI actions, refocusing the widget if necessary.

Instance Methods [hide private]
 
__init__(self, action)
action is a string with the same name as the AT-SPI action you wish to execute using this class.
source code
 
__call__(self, name='', roleName='', description='', delay=1.0)
If name, roleName or description are specified, first search for a widget that matches and refocus on it.
source code
 
__getattr__(self, attr) source code
 
__setattr__(self, attr, value)
x.__setattr__('name', value) <==> x.name = value
source code
 
button(self, name)
A shortcut to self(name, roleName = 'push button')
source code
 
menu(self, name)
A shortcut to self(name, roleName = 'menu')
source code
 
menuItem(self, name)
A shortcut to self(name, roleName = 'menu item')
source code
 
table(self, name='')
A shortcut to self(name, roleName 'table')
source code
 
tableCell(self, name='')
A shortcut to self(name, roleName 'table cell')
source code
 
text(self, name='')
A shortcut to self(name, roleName = 'text')
source code

Inherited from FocusWidget: findByPredicate

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from FocusBase: node

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, action)
(Constructor)

source code 

action is a string with the same name as the AT-SPI action you wish to execute using this class.

Overrides: object.__init__

__call__(self, name='', roleName='', description='', delay=1.0)
(Call operator)

source code 

If name, roleName or description are specified, first search for a widget that matches and refocus on it. Then execute the action.

Overrides: FocusWidget.__call__

__getattr__(self, attr)
(Qualification operator)

source code 
Overrides: FocusBase.__getattr__

__setattr__(self, attr, value)

source code 

x.__setattr__('name', value) <==> x.name = value

Overrides: object.__setattr__
(inherited documentation)