Hi Stephen,

GTK buttons have built-in methods to change a buttons visibility. This is actually available for any widget, I think. They are "hide()" and "show()".

Sensitivity (if the widget is accepting input) is different, but can be set with widget.props.sensitive = True/False

I just recently wrote a "enable/disable" utility module, but not sure if that would be what you're looking for.

Hope that helps.

- Steve


Stephen George wrote:
Hi,

Just new to pyGTK, (and hence GTK and GLADE)

I notice that in Glade I can set a buttons 'Visible' property to 'Yes' or 'No'

I don't seem to be able to find a pyGTK API to do this programatically

Any suggestions what API call  I should be looking for?

I am already using set_sensitive() in another context

Thanks
Steve



_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

_______________________________________________
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