Executing submenu.py (after fixing the deprecation warnings) from https://zetcode.com/wxpython/menustoolbars/ as well as my own (first) app produces this message in the shell window after a menu selection:
Debug: window wxMenuBar(0x5613eaefc450, ) lost focus even though it didn’t have it
I’m running Python 3.10.6 on Ubuntu 22.04.1 LTS and have added wxPython using sudo apt install python3-wxgtk4.0.
It’s probably not harmful, but I don’t want to have it appear when I run a demo. wx.Log.SetLogLevel( wx.LOG_Error ) suppresses it and other warnings, which helps but is rather crude. Is there a better way to make this warning go away? Am I using an outdated version?