Package kiwi :: Package ui :: Package test :: Module recorder :: Class Event
[frames | no frames]

Type Event

object --+
         |
        Event

Known Subclasses:
SignalEvent, WindowDeleteEvent

Event is a base class for all events. An event represent a user change of an interactive widget.
Method Summary
  get_toplevel(self, widget)
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
  serialize(self)
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:

Class Variable Summary
NoneType object_type: subclass for type, Recorder uses this to automatically attach events to objects when they appear

Method Details

get_toplevel(self, widget)

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(self)

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.

Class Variable Details

object_type

subclass for type, Recorder uses this to automatically attach events to objects when they appear
Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Tue Feb 6 10:53:34 2007 http://epydoc.sf.net