GetDefaultEditorForType(): Unknown data type name []

Petr Hlávka petrhlavka at gmail.com
Tue Jul 31 08:48:52 PDT 2007


Hello,

after migration from wxPython 2.6.3.2 to 2.8.4.0 (and Python 2.3 to
2.5) I encounter strange errors when operating with grid in my app. I
have own GridBaseTable and some registered custom grid types (for bool
values). Sometimes (usually only for random cells) I've got an
exception:

attr = wx.grid.GridCellAttr()
File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\grid.py", line 513,
in __init__
_grid.GridCellAttr_swiginit(self,_grid.new_GridCellAttr(*args, **kwargs))
wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed at ..\..\src\g
eneric\grid.cpp(10223) in wxGrid::GetDefaultEditorForType(): Unknown data type n
ame []

The GetTypeName method always returns non-empty value so this error is
quite strange for me. I'm not able to send the whole code here and
when I try to cut off some snips, everything works correctly...

Have anyone similar problems or could someone point me to the root of
the problem.

  Thanks, Petr Hlavka.




More information about the wxpython-users mailing list