[pygtk] Setting button visibility
Rafael Villar Burke
pachi at rvburke.com
Thu Oct 11 19:43:20 WST 2007
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?
a gtk.Button is a gtk.Widget (that is, the gtk.Button class inherits
from the gtk.Widget class), and those methods belong to the "widget"
behaviour.
You can see the inheritance tree for the gtk.Button in the pygtk
reference page for it: http://www.pygtk.org/docs/pygtk/class-gtkbutton.html
And see the show() and hide() methods in the gtk.Widget page:
http://www.pygtk.org/docs/pygtk/class-gtkwidget.html
Enjoy your PyGTK hacking! :),
Rafael Villar Burke
More information about the pygtk
mailing list