[wxpython-users] Sizer.IsShown discrepancy?

wxPython user mailing list, post #18,511
Author:
Date:
Subject:
 Mike Rooney
 2008-07-18 14:19:39
 [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
[email protected]
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Author:
Date:
Subject:
 Robin Dunn
 2008-07-18 12:13:50
 Re: [wxpython-users] Sizer.IsShown discrepancy?
Mike Rooney wrote:
> 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:

> However, when I attempt this, I get "TypeError: wx.Window or wx.Sizer
> expected for item"

I've fixed this for the next release.


--
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
Author:
Date:
Subject:
 Mike Rooney
 2008-07-18 15:20:29
 Re: [wxpython-users] Sizer.IsShown discrepancy?
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
Author:
Date:
Subject:
 Robin Dunn
 2008-07-18 12:38:25
 Re: [wxpython-users] Sizer.IsShown discrepancy?
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