[pygtk] create a gtk.Button without any label

Gian Mario Tagliaretti gianmt at gnome.org
Mon Nov 26 23:38:49 WST 2007


2007/11/26, awalter1 <alain.walter a thalesgroup.com>:

> I'm looking about how to create a button with only a stock item and no
> label.

[...]

> Is there a more simple solution ?

gtk.stock_add([(gtk.STOCK_SAVE, "", 0, 0, "")])
button = gtk.Button(None, gtk.STOCK_SAVE)

cheers
-- 
Gian Mario Tagliaretti


More information about the pygtk mailing list