I am attempting to test the LabelBook from Andrea’s AGW library and keep getting the following traceback. I am also unable to see the LabelBook tabs that should be on the left. The background for the tab area is present and the first tab’s panel loads, but cannot navigate with any navigation keys or the mouse because the tabs themselves are missing.
Traceback (most recent call last):
File “/usr/local/lib/python2.7/dist-packages/wx/lib/agw/labelbook.py”, line 1667, in OnPaint
bmp = self._ImageList.GetBitmap(indx)
File “/usr/local/lib/python2.7/dist-packages/wx/_gdi.py”, line 6743, in GetBitmap
return gdi.ImageList_GetBitmap(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion “node” failed at ~/Downloads/wxpython/wxPython-src-3.0.0.0/src/generic/imaglist.cpp(122) in GetBitmapPtr(): wrong index in image
I also tried the same attached code with wxPython_Phoenix-3.0.1.dev76392 with the same results. Any suggestions?
The machine is Ubuntu 12.04 LTS, Python 2.7.6
new_lb_test.py (3.64 KB)