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

Type ButtonClickedEvent

object --+        
         |        
     Event --+    
             |    
   SignalEvent --+
                 |
                ButtonClickedEvent


This event represents a button click. Note that this will also work for GtkToggleButton, GtkRadioButton and GtkCheckButton.
Method Summary
  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:
    Inherited from SignalEvent
  connect(cls, object, signal_name, cb)
Calls connect on object for signal signal_name. (Class method)
    Inherited from Event
  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

Class Variable Summary
NoneType signal_name: signal to listen to

Instance Method Details

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.
Overrides:
kiwi.ui.test.recorder.Event.serialize (inherited documentation)

Class Variable Details

signal_name

signal to listen to
Type:
NoneType
Value:
'clicked'                                                              

Generated by Epydoc 2.1 on Mon Oct 9 12:40:56 2006 http://epydoc.sf.net