Package kiwi :: Package ui :: Package test :: Module player :: Class Player
[frames | no frames]

Type Player

object --+    
         |    
      Base --+
             |
            Player


Event playback object. Usually called from inside a scripted generated by kiwi.ui.test.recorder.Recorder.

The application script will be exectured in a different thread, so to be able to conveniently use it a number of tricks are used to avoid making the user worry about threadsafety.
Method Summary
  delete_window(self, window_name)
Deletes a window, creates a delete-event and sends it to the window
  finish(self)
  get_app(self)
Returns a virtual application object, which is a special object where you can access the windows as attributes and widget in the windows as attributes on the window, examples:
  wait_for_window(self, name, timeout)
Waits for a window with name name to appear.
    Inherited from Base
  get_object(self, attr)
Return toplevel object
  GtkContainer(self, toplevel, container)
Called when a GtkContainer is about to be traversed
  GtkDialog(self, toplevel, dialog)
Called when a GtkDialog is about to be traversed
  GtkMenuItem(self, toplevel, item)
Called when a GtkMenuItem is about to be traversed
  GtkSeparatorMenuItem(self, toplevel, gobj)
  GtkTearoffMenuItem(self, toplevel, gobj)
  GtkToolButton(self, toplevel, item)
  GtkWidget(self, toplevel, widget)
Called when a GtkWidget is about to be traversed
  ignore(self, toplevel, gobj)
  parse_one(self, toplevel, gobj)
  window_added(self, window)
This will be called when a window is displayed
  window_removed(self, window)
This will be called when a window is destroyed

Method Details

delete_window(self, window_name)

Deletes a window, creates a delete-event and sends it to the window

get_app(self)

Returns a virtual application object, which is a special object where you can access the windows as attributes and widget in the windows as attributes on the window, examples:
>>> app = player.get_app()
>>> app.WindowName.WidgetName.method()
Returns:
virtual application object

wait_for_window(self, name, timeout=10)

Waits for a window with name name to appear.
Parameters:
name - the name of the window to wait for
timeout - number of seconds to wait after the window appeared.

Generated by Epydoc 2.1 on Fri Sep 15 11:53:22 2006 http://epydoc.sf.net