Table of Contents

Module: utils dogtail/utils.py

Various utilities

Authors: Ed Rousseau <rousseau@redhat.com>, Zack Cerza <zcerza@redhat.com, David Malcolm <dmalcolm@redhat.com>

Functions   
doDelay
run
screenshot
  doDelay 
doDelay ( delay=None )

Utility function to insert a delay (with logging and a configurable default delay)

  run 
run (
        string,
        timeout=Config.runTimeout,
        interval=Config.runInterval,
        desktop=None,
        dumb=False,
        appName=None,
        )

Runs an application. [For simple command execution such as rm *, use os.popen() or os.system()] If dumb is omitted or is False, polls at interval seconds until the application is finished starting, or until timeout is reached. If dumb is True, returns when timeout is reached.

  screenshot 
screenshot (
        windowname='',
        file='',
        args='',
        )

This function wraps the ImageMagick import command. It is not very useful for anything except the root window right now.

Exceptions   
IOError
ValueError, "Screenshot failed: " + answer [ -1 ]

Table of Contents

This document was automatically generated on Wed Oct 5 12:27:32 2005 by HappyDoc version 2.1