I am working on a medium-sized wxPython thing and, while I am becoming crazy for other problems, I get sometimes this kind of messages:
File “C:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx_core.py”, line 11491,
in IsShown
return core.SizerItem_IsShown(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion “wxAssertFailure” failed in …\src\common\sizer.cpp(458): unexpected wxSizerItem::m_kind
???
Does anyone know what this message could mean? Thanks a lot for every suggestion…
Hello NG,
I am working on a medium-sized wxPython thing and, while I am becoming crazy for other problems, I get sometimes this kind of messages:
File "C:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx\_core.py", line 11491,
in IsShown
return _core_.SizerItem_IsShown(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed in ..\..\src\common\sizer.cpp(458): unexpected wxSizerItem::m_kind
???
Does anyone know what this message could mean? Thanks a lot for every suggestion...
It means that IsShown was called on an item that is not referencing a Window, a Sizer or a spacer. Not sure how that could happen though...
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Tuesday, December 27, 2005, 7:55:25 PM, Andrea Gavana wrote:
File "C:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx\_core.py",
line 11491, in IsShown return _core_.SizerItem_IsShown(*args,
**kwargs) wx._core.PyAssertionError: C++ assertion "wxAssertFailure"
failed in ..\..\src\common\sizer.cpp(458): unexpected
wxSizerItem::m_kind
Does anyone know what this message could mean? Thanks a lot for
every suggestion...
Maybe an item was added and IsShown was called before a Layout()? Try
sizer.Layout() before calling IsShown().
-- tacao
No bits were harmed during the making of this e-mail.