[pygtk] FAQ section 5.3 get_state()

Gian Mario Tagliaretti gianmt at gnome.org
Fri Sep 21 05:14:48 WST 2007


2007/9/20, Steven Brown <steven.w.j.brown a gmail.com>:

> Am I missing something or is the FAQ incorrect/out-of-date?  I'd update
> the FAQ, but I'm quite new to this whole thing, so I wanted to check
> with the vets.  :)

I think you are right, in GTK you have a macro to get the state of the
widget GTK_WIDGET_STAT() which is the same as pygtk attribute
widget.state since the macro get the "state" struct member, the
set_state is implemented in both GTK (gtk_widget_set_state) and pygtk
gtk.Widget.set_state.

cheers
-- 
Gian Mario Tagliaretti


More information about the pygtk mailing list