This project has moved and is read-only. For the latest updates, please go here.

wxPython sample error

Jun 29, 2011 at 8:15 AM
Edited Jun 29, 2011 at 8:15 AM

I tested wxPython "Editor" sample in

the test worked well when I run the source file itself.

but in python tool in visual studio, I got an error message


Traceback (most recent call last):
  File "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\1.0\", line 358, in run_file_as_main
    exec(code, self.exec_mod.__dict__, self.exec_mod.__dict__)
  File "C:\Users\wjchoi\documents\visual studio 2010\Projects\PythonApplication1\PythonApplication1\", line 272, in <module>
    Editor(None, -1, 'Editor')
  File "C:\Users\wjchoi\documents\visual studio 2010\Projects\PythonApplication1\PythonApplication1\", line 98, in __init__
  File "C:\Python27\lib\site-packages\wx-2.9.1-msw\wx\", line 4045, in Realize
    return _controls_.ToolBarBase_Realize(*args, **kwargs)
PyAssertionError: C++ assertion "Assert failure" failed at ..\..\src\msw\toolbar.cpp(756) in wxToolBar::Realize(): invalid tool button bitmap


Do you have any idea about this?

Wonjun, Choi

Jun 30, 2011 at 8:17 AM

Now I create a new project and there is no error.


Wonjun, Choi