On Fri, 12 Jan 2001, James Henstridge wrote:
> On Thu, 11 Jan 2001, George Young wrote:
> > How can I find out if a widget is mapped, i.e. if someone has done w.show() or 
>show_all() on it?
> > I found references in pygtk source to GTK_OBJECT_FLAGS, gtkwidgetflags and 
>GTK_MAPPED, but I can't 
> > figure out how to use them.
> 
> use the flags() method of the widget.  That is, widget.flags(MAPPED).
> 
> Are you sure that you want to check if the widget is mapped though?
> 
> Being shown doesn't necessarily mean being mapped.

I actually do want to know if it has been shown, i.e. did the code that created this 
widget
intend it to be open by default or not.  Is there one of the flags that corresponds to 
'shown'?

--
George Young,  Rm. L-204                [EMAIL PROTECTED]
MIT Lincoln Laboratory
244 Wood St.
Lexington, Massachusetts  02420-9108    (781) 981-2756

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to