[wxPython-users] GridBagSizer error with a hidden item
Robin Dunn
robin at alldunn.com
Mon Sep 4 10:47:09 PDT 2006
Lee Merrill wrote:
> Hi everyone,
>
> If you set up in xrced the following:
>
> wxPanel
> wxGridBagSizer
> wxStaticText: 0,0
> wxStaticText: 0,1 and hidden
>
> this generates an error when you press F5 to test it:
> "PyAssertionError: C++ assertion "uiIndex < m_nCount" failed in
> ..\..\include\wx/dynarray.h(812)". This is with Python 2.4 and wxPython
> 2.6.3.2 on Windows XP. I googled for this error message and it seems it
> sometimes indicates a bug, but I couldn't find a description of this
> problem.
>
> Putting the hidden item in a box sizer fixes the problem.
It looks like it only happens if the last item in the sizer is hidden,
so another workaround would be to add a empty spacer or something after
that item.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list