[pygtk] gtk.Action.connect_proxy
John Finlay
finlay at moeraki.com
Fri Mar 14 10:42:56 WST 2008
Geoff Bache wrote:
>
> Hi all,
>
> I can't persuade this to work as described unfortunately. The docs say
>
> "This method synchronizes various properties of the |gtk.Action|
> <http://www.pygtk.org/docs/pygtk/class-gtkaction.html> with the widget
> (such as label text, icon, tooltip, etc), and attaches a callback so
> that the |gtk.Action|
> <http://www.pygtk.org/docs/pygtk/class-gtkaction.html> is activated
> when /|proxy|/ is."
>
> As far as I can tell, when connecting a simple button as a proxy, all
> that gets transferred is the label text. The stock icon and tooltip at
> least are not transferred.
> Is this to be expected?
>
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
More information about the pygtk
mailing list