Part of kiwi.ui.test.recorder View In Hierarchy
This event represents a click on a normal menu entry It's sort of a hack to use button-press-event, instea of listening to activate, but we'll get the active callback after the user specified callbacks are called, at which point it is already too late.
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: |
Inherited from Event (via SignalEvent):
Class Variable | object_type | subclass for type, Recorder uses
this to automatically attach events to objects when they appear |
Inherited from Event (via SignalEvent):
Class Variable | object_type | subclass for type, Recorder uses
this to automatically attach events to objects when they appear |
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. |