I'm experiencing the same error with your application. It is not due
to PythonWin, is a wxPython problem (bug?). Your application works if you
substitute the line:
app = wx.PyApp()
With:
app = wx.PySimpleApp()
I don't know why. I never user wx.PyApp(), I am always happy with wx.PySimpleApp().
Maybe wx.PyApp() is deprecated now? Robin knows the answer, for sure.
I'm experiencing the same error with your application. It is not due
to PythonWin, is a wxPython problem (bug?). Your application works if you
substitute the line:
app = wx.PyApp()
With:
app = wx.PySimpleApp()
I don't know why. I never user wx.PyApp(), I am always happy with wx.PySimpleApp().
Maybe wx.PyApp() is deprecated now? Robin knows the answer, for sure.
Read the first few lines of the output of "pydoc wx.PyApp"
> pydoc wx.PyApp
Help on class PyApp in wx:
wx.PyApp = class PyApp(EvtHandler)
···
The ``wx.PyApp`` class is an *implementation detail*, please use the
> `wx.App` class (or some other derived class) instead.
>
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!