[Bug 1864] - Menu items don't connect signals

bugzilla-daemon at async.com.br bugzilla-daemon at async.com.br
Fri Mar 18 14:58:51 BRT 2005


http://bugs.async.com.br/show_bug.cgi?id=1864  

lgs at sicem.biz changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From lgs at sicem.biz  2005-03-18 14:58 -------
Fixed. Now actions (which are the concept behind menubars and toolbars) are
managed the same way as regular widgets. This mean you need to add their names in
the widgets = [] lists of the Views/Delegates and then you can access them as
self.ActionName and can write callbacks like on_my_action__activate.

The signal you want to listen with an Action is called 'activate' so your methods
should be called [on|after]_your_signal_name__activate

Check Kiwi2/tests/test_Action.py to see how this work.


More information about the Kiwi mailing list