[wxPython-users] PyAssertionError, while adding controls to
wx.ScrolledWindow
Robin Dunn
robin at alldunn.com
Thu Dec 13 09:23:21 PST 2007
gopal mishra wrote:
> Hi,
>
>
>
> In a wx.Dialog, I’ve added a wx.ScrolledWindow to the dialog and
> dynamically adding more then 1250 wx.StaticText controls in row wise to
> scrolled window.
>
>
>
> I am getting the following error message:
>
> Traceback (most recent call last):
>
> File
> "C:\Python25\lib\site-packages\ft8\tools\gapChecker\gapCategorizeDialog.p
>
> y", line 70, in _createRadioBoxOfUnknownTypes
>
> pos = wx.Point(xPos, yPos), size = wx.Size(xSize, ySize), style = 0,
> name =
>
> "staticText")
>
> File
> "C:\Python25\Lib\site-packages\wx-2.7.1-msw-ansi\wx\_controls.py", line 1
>
> 142, in __init__
>
> _controls_.StaticText_swiginit(self,_controls_.new_StaticText(*args,
> **kwarg
>
> s))
>
> PyAssertionError: C++ assertion "wxAssertFailure" failed at
> ..\..\src\msw\control.cpp(159) in wxControl::MSWCreateControl():
> CreateWindowEx("STATIC", flags=5200
>
> 0100, ex=00000000) failed
Try something newer than wxPython 2.7.1. Also what version of Windows
are you running? Can you duplicate this problem in a small runnable app
you can send here?
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list