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

Type MenuItemActivateEvent

object --+        
         |        
     Event --+    
             |    
   SignalEvent --+
                 |
                MenuItemActivateEvent


This event represents a user click on a menu item. It could be a toplevel or a normal entry in a submenu.
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:
'activate'                                                             

Generated by Epydoc 2.1 on Mon Jan 29 16:42:59 2007 http://epydoc.sf.net