[pygtk] Help with gtk.Menu.popup

Pádraig Brady P at draigBrady.com
Thu Nov 20 21:38:31 WST 2008


Ángel Alonso wrote:
> Thanks for your help.
> 
> My problem is this:
> 
> self.icon = gtk.status_icon_new_from_stock(gtk.STOCK_REFRESH)
> self.icon.connect('popup-menu', self.onRightClick)
> self.icon.connect('activate', self.onLeftClick)
> 
> In onRightClick function the signal 'popup-menu' has activate_time param
> but in onLeftClick function the signal 'activate' has not it.

That usage is also shown in my example. Just pass 0 for this case



More information about the pygtk mailing list