Bob Klahn wrote:
What could cause this traceback? I'm running Python 2.5.1 and wxPython 2.8.4 under Windows XP SP2.
The line of code that triigers the traceback: self.SetCellHighlightColour('BLUE')
The traceback:
File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\grid.py", line 1519, in SetCellHighlightColour
return _grid.Grid_SetCellHighlightColour(*args, **kwargs)
wx._core.PyAssertError: C++ assertion "uiIndex < m_nCount" failed at ..\..\include\wx/dynarray.h(813) in wxBaseArrayInt::Item()
The problem probably isn't with SetCellHilightColour itself, but rather that is the first time control returns to Python code after the assertion has happened somewhere else. Please try to narrow down the problem by looking at what is happening before the code that calls SetCellHilightColour is called.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!