[wxPython-users] CollapsiblePane oddity
Robin Dunn
robin at alldunn.com
Tue Jul 31 12:16:43 PDT 2007
Trask wrote:
> I have searched around in the archives for this, but strangely it does
> not seem to have ever been mentioned.
>
> The CollapsiblePane never seems to throw a
> wx.EVT_COLLAPSIBLEPANE_CHANGED event -- both in my own code as well as
> "demo.py" from the wxPython site.
>
> In the demo, if you click the "pane" that says "Click here to show
> pane", the little triangular icon rotates as if the panel was opening,
> but you don't see any of the forms that are there. If you resize the
> app's window, it will refresh and you can see the forms. However, if
> you click the button that says "call Expand()" that will resize
> immediately as you would expect.
>
> If you follow the "demo log messages" window, you should see a message
> when EVT_COLLAPSIBLEPANE_CHANGED is handled, but you never do.
>
> What is going on? Am I missing something?
This is a known bug that has already been fixed for the next release.
To workaround I think you can always use the wx.CP_NO_TLW_RESIZE style
and then you should get the event and can handle doing the layout
however you want.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list