[wxpython-users] Sizer.IsShown discrepancy?
by Mike Rooney other posts by this author
Jul 18 2008 11:20AM messages near this date
Re: [wxpython-users] Different versions of OSX
|
Re: [wxpython-users] Sizer.IsShown discrepancy?
Hello,
I feel like either I am going crazy or I have found a bug. Actually, I
think I mentioned this before but I guess nothing ever came of it, and I
can't seem to find anything related on trac.
I am trying to use wx.Sizer.IsShown with a zero-based index (such as
sizer.IsShown(0)), as the docs indicate that I can:
def IsShown(*args, **kwargs):
"""
IsShown(self, item)
Determines if the item is currently shown. To make a sizer
item disappear or reappear, use Show followed by `Layout`. The
*item*
parameter can be either a window, a sizer, or the zero-based
index of
the item.
"""
return _core_.Sizer_IsShown(*args, **kwargs)
However, when I attempt this, I get "TypeError: wx.Window or wx.Sizer
expected for item"
I can work around this by doing for example, sizer.GetItem(0).IsShown(),
but that doesn't make me less confused about why my first attempt fails.
- Mike
_______________________________________________
wxpython-users mailing list
wxpython-users@[...].org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Thread:
Mike Rooney
Robin Dunn
Mike Rooney
Robin Dunn
|