Package dogtail :: Module tree :: Class Application
[hide private]
[frames] | no frames]

Class Application

source code

object --+    
         |    
      Node --+
             |
            Application

Instance Methods [hide private]
 
dialog(self, dialogName, recursive=False)
Search below this node for a dialog with the given name, returning a Window instance.
source code
 
window(self, windowName, recursive=False)
Search below this node for a window with the given name, returning a Window instance.
source code
 
getWnckApplication(self)
Get the wnck.Application instance for this application, or None
source code

Inherited from Node: blink, button, child, childLabelled, childNamed, click, contains, deselect, deselectAll, doActionNamed, doubleClick, dump, findAncestor, findChild, findChildren, getAbsoluteSearchPath, getChildAtPoint, getLogString, getRelativeSearch, getUserVisibleStrings, grabFocus, isChild, keyCombo, menu, menuItem, point, satisfies, select, selectAll, tab, textentry, typeText

Inherited from Node (private): _fastFindChild

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

Properties [hide private]

Inherited from Node: URI, actions, caretOffset, checked, children, combovalue, dead, debugName, extents, focusable, focused, indexInParent, isChecked, isSelected, labelee, labeler, labellee, labeller, maxValue, minValue, minValueIncrement, position, role, roleName, selected, selectedChildren, sensitive, showing, size, text, value

Inherited from object: __class__

Method Details [hide private]

dialog(self, dialogName, recursive=False)

source code 

Search below this node for a dialog with the given name, returning a Window instance.

This is implemented using findChild, and hence will automatically retry if no such child is found, and will eventually raise an exception. It also logs the search.

FIXME: should this method activate the dialog?

window(self, windowName, recursive=False)

source code 

Search below this node for a window with the given name, returning a Window instance.

This is implemented using findChild, and hence will automatically retry if no such child is found, and will eventually raise an exception. It also logs the search.

FIXME: this bit isn't true: The window will be automatically activated (raised and focused by the window manager) if wnck bindings are available.

getWnckApplication(self)

source code 

Get the wnck.Application instance for this application, or None

Currently implemented via a hack: requires the app to have a window, and looks up the application of that window

wnck.Application can give you the pid, the icon, etc

FIXME: untested