[pygtk] Getting widget visibility
John Ehresman
jpe at wingware.com
Thu Apr 24 01:23:22 WST 2008
Mitko Haralanov wrote:
> On Tue, 22 Apr 2008 21:31:35 -0700
> John Finlay <finlay at moeraki.com> wrote:
>
>> It does inherit the visible property - what makes you think it doesn't?
>
> The exception that my app threw when I tried to use it:
>
> Traceback (most recent call last):
> File "/monitor/track.py", line 131, in start_updates
> if syslog_frame.visible:
> AttributeError: 'gtk.Frame' object has no attribute 'visible'
Try
syslog_frame.props.visible
gobject properties are not automatically attributes for a variety of
reasons. This is documented at
http://pygtk.org/docs/pygobject/class-gobject.html
John
More information about the pygtk
mailing list