First of all, thank you for this fantastic toolkit! I’m using in ms windows from years!
Description of the problem:
The window opens in the background and does not receive focus. After running the program, I am able to type, and my input goes into the terminal window
Ok, on mac the frame cannot get the focus, on windows it can.
So, something on mac don’t let the frame to get the focus.
All the demos and samples have the same behaviour, all opened in background, interesting…
About memory impact, considering that my program is very small, it’s a high:
RSS without importing cocoa: 37056
RSS importing cocoa: 107360
About using osascript, I think should be possibile but execution time should be slower than using cocoa.
I’m using a global hotkey to put my app in foreground when pressed, with cocoa this is really immediate, using osascript should be slower, not tested.
When I noticed this problem on Mac in the past, I fixed it by following some advice I found, which was to use wx.PyApp instead of wx.App. And it works!
However, it turns out that caused the problem I just posted recently about SingleChoiceDialog not rendering properly on Mac. If I go back to using wx.App, the dialog renders correctly, and then I have the problem of my app not coming to the foreground again. Since I need the dialog to render properly, I will (for now) live with this problem, since I can click on the window to get it to the foreground and receiving keyboard input.