[wxPython-users] Linux Collapsible Pane Problem
Robin Dunn
robin at alldunn.com
Thu Aug 2 13:00:05 PDT 2007
Gregory Bayard wrote:
> Hi Everyone,
>
> This may be a bug, but I wanted to bounce this off the list first.
> When the user expands a collapsible pane, some form of resize event is
> generated (which is fine). The problem is that the resize does not
> appear to account for the menu bar and the new window size is too
> short and cuts off the bottom of my controls or hides the top of my
> controls bellow the menu bar.
>
> I'm running this on SuSe Enterprise Linux 9 with Python 2.4.4 and
> wxWindows-2.8.4.0. I browsed through the recent changes and did not
> see anything related to this. Here is some code which demonstrates my
> example, keep in mind this works perfectly on Windows.
It looks like the code is using lower level gtk functions to handle the
resize, instead of doing it using wx methods which would keep track of
menubar and the client size vs full size, etc. Please enter a "wxGTK
Specific" bug report about this.
As a workaround I would suggest to use the wx.CP_NO_TLW_RESIZE style and
handle the resize and layout yourself in a
wx.EVT_COLLAPSIBLEPANE_CHANGED handler, but there is a bug in wxGTK
2.8.4.0 that prevents it from sending that event if that style is set.
This has already been fixed for the next release.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list