kiwi.ui.test.recorder.Event(object)
class documentationkiwi.ui.test.recorder
(View In Hierarchy)
Known subclasses: kiwi.ui.test.recorder.SignalEvent, kiwi.ui.test.recorder.WindowDeleteEvent
Event is a base class for all events. An event represent a user change of an interactive widget. @cvar object_type: subclass for type, L{Recorder} uses this to automatically attach events to objects when they appear
Method | __init__ | No summary |
Method | get_toplevel | This fetches the toplevel widget for a specific object, by default it assumes it's a wiget subclass and calls get_toplevel() for the widget |
Method | serialize | Serialize the widget, write the code here which is used to reproduce the event, for a button which is clicked the implementation looks like this: |
Create a new Event object. @param object: a gobject subclass @param name: name of the object, if None, the method get_name() will be called
This fetches the toplevel widget for a specific object, by default it assumes it's a wiget subclass and calls get_toplevel() for the widget Override this in a subclass.
Serialize the widget, write the code here which is used to reproduce the event, for a button which is clicked the implementation looks like this: >>> def serialize(self): >>> ... return '%s.clicked' % self.name @returns: string to reproduce event Override this in a subclass.