wxdan
1
My app pretty much uses
except I use macro, IMPLEMENT_APP_NO_MAIN because AutoCAD already has a running main
My init code is here
I create and wxTheApp, wx.PyApp() works, but wx.GetMousePosition() fails with
#wx._core.PyNoAppError: The wx.App object must be created first!
how do I create wx.App? why doesn’t wx.App use wxTheApp?
wxdan
2
just to add wxGetMousePosition works fine in the C++ side
wxdan
3
DoH!, pretty sure this is because I’m a bonehead
I think calling wx.PyApp() was nuking my app, I should have been calling wx.PyApp.GetInstance()