List Info

Thread: CollapsiblePane oddity




CollapsiblePane oddity
user name
2007-07-31 13:14:37
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?

Python 2.5
wxPython 2.8.4.0
Ubuntu 7.04

------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-users-helplists.wxwidgets.org


Re: CollapsiblePane oddity
country flaguser name
United States
2007-07-31 14:16:43
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!


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-users-helplists.wxwidgets.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )