wxPython sample error

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

I tested wxPython "Editor" sample in http://wiki.wxpython.org/index.cgi/AnotherTutorial#Editor

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\visualstudio_py_repl.py", 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\pyEditor.py", line 272, in <module>
    Editor(None, -1, 'Editor')
  File "C:\Users\wjchoi\documents\visual studio 2010\Projects\PythonApplication1\PythonApplication1\pyEditor.py", line 98, in __init__
    self.toolbar.Realize()
  File "C:\Python27\lib\site-packages\wx-2.9.1-msw\wx\_controls.py", 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 7:17 AM

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

thanks

Wonjun, Choi