[pygtk] create a gtk.Button without any label
awalter1
alain.walter at thalesgroup.com
Tue Nov 27 17:26:39 WST 2007
Thank you all for this large panel of solutions.
Regards
awalter1 wrote:
>
> Hi,
>
> I'm looking about how to create a button with only a stock item and no
> label.
>
> The unique solution I've found is :
> button = gtk.Button(stock=gtk.STOCK_SAVE)
> alignment = button.get_children()[0]
> hboxtemp = alignment.get_children()[0]
> image, text = hboxtemp.get_children()
> text.set_text(' ')
>
>
> Is there a more simple solution ?
>
> Thanks
>
>
>
--
View this message in context: http://www.nabble.com/create-a-gtk.Button-without-any-label-tf4875369.html#a13966658
Sent from the Gtk+ - Python mailing list archive at Nabble.com.
More information about the pygtk
mailing list