strongwind r14 - in trunk: . strongwind



Author: jtai
Date: Tue Jan  8 23:21:42 2008
New Revision: 14
URL: http://svn.gnome.org/viewvc/strongwind?rev=14&view=rev

Log:
2008-01-08  Jonathan Tai  <jon tgpsolutions com>

	* strongwind/cache.py: Document arguments to launchApplication().


Modified:
   trunk/ChangeLog
   trunk/strongwind/cache.py

Modified: trunk/strongwind/cache.py
==============================================================================
--- trunk/strongwind/cache.py	(original)
+++ trunk/strongwind/cache.py	Tue Jan  8 23:21:42 2008
@@ -168,6 +168,21 @@
     '''
     Launch an application with accessibility enabled
 
+    args, cwd, and env are passed to subprocess.Popen.  If cwd is not specified, it
+    defaults to os.cwd().  If env is not specified, it defaults to os.environ, plus
+    GTK_MODULES='gail:atk-bridge'
+
+    After launching the application, a reference to the
+    strongwind.accessibles.Application is cached.  The "name" argument to this
+    method is used to find the accessible that should be promoted to a
+    strongwind.accessibles.Application.  The name is also used to refer to the
+    application in the test procedures log.  If name is not specified, it defaults
+    to the basename of args[0] with any file extension stripped.  
+
+    If the accessible name of the application is not fixed, the "find" argument can
+    be used to search for a pattern.  If find is not specified, it defaults to
+    re.compile('^' + name)
+
     Returns a tuple containing a strongwind.accessibles.Application 
     object and a Popen object.
     '''



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]