[pygtk] gtk.Action.connect_proxy

Geoff Bache geoff.bache at jeppesen.com
Fri Mar 14 20:53:31 WST 2008


> The tooltip is only set on a ToolItem but the stock icon will be used 
> if you set the "use-stock" property of the button to True:
>
> button.set_use_stock(True)
>
> John
Thanks John,

Unfortunately this seems to have the effect that the label text is 
derived from the stock icon's name rather than the title of the action! 
So then I have to transfer the label by hand instead...

Do you know if there is any reason why the tooltip isn't transferred 
(and why you can transfer the stock icon or the label, but not both!)? 
It's easy to transfer both by hand of course, but when the docs promise 
to do it for you it seems a bit weird...

Regards,
Geoff



More information about the pygtk mailing list