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
[email protected]
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Robin Dunn wrote:
> Mike Rooney wrote:
>
>> However, when I attempt this, I get "TypeError: wx.Window or wx.Sizer
>> expected for item"
>
> I've fixed this for the next release.
>
>
Great! Does that mean you were already aware of the issue and had
already fixed it before my email, or you are just lightning fast at
fixing bugs?
And, by next release, do you mean 2.8.8.1, or the first 2.9 release?
Thanks for all your great work!
- Mike
_______________________________________________
wxpython-users mailing list
[email protected]
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Mike Rooney wrote:
> Robin Dunn wrote:
>> Mike Rooney wrote:
>>
>>> However, when I attempt this, I get "TypeError: wx.Window or wx.Sizer
>>> expected for item"
>>
>> I've fixed this for the next release.
>>
>>
>
>
> Great! Does that mean you were already aware of the issue and had
> already fixed it before my email, or you are just lightning fast at
> fixing bugs?
I think I was aware of it before but hadn't done anything about it at
the time because I was in the middle of something else. It was a
lightning fast fix because all it needed was changing a 'false' to a
'true' :-)
>
> And, by next release, do you mean 2.8.8.1, or the first 2.9 release?
2.8.8.1
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
_______________________________________________
wxpython-users mailing list
[email protected]
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users