On Wed, Jan 14, 2004 at 08:22:23AM -0600, John Hunter wrote:
> I suspect this isn't possible from my reading of the docs, but I
> thought I'd ask.  I'd like to be able to do something like
> 
>     button = gtk.Button(stock=gtk.STOCK_CANCEL)
>     button.show()
>     button.set_use_stock(gtk.TRUE)
>     button.set_label('Hide')
> 
> But this doesn't work.
> 
> Is this possible?

Have you tried looking through the button's children and setting the
label's text directly? It could be that set_label() fails silently but
that manipulating the label via the set_text() method works.

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to