Closed machawk1 closed 2 years ago
This appears to be a function of wxWidgets. Additionally, the statusbar value is cleared when any other menu item is hovered. It is odd that menu selection affects the main window's status bar value as default wxPython functionality.
This, for example, clears the "memento count" as reported from MemGator and formatted, which might be used as the basis of which menu item is selected by a user, so should be resolved independent of the particular "About" issue.
More generally, it would be best for menu items to not affect the status bar value.
This value can be specified on a per-menu item basis with the third parameters of menu.Append()
in wxPython.
https://wxpython.org/Phoenix/docs/html/wx.Menu.html#wx.Menu.Append described a means of preventing the default affect of the "help text" being shown in the statusbar.
The wxEVT_MENU_HIGHLIGHT would need to be intercepted and would be attached to the wx.Frame, not the menu nor the statusbar. See https://wxpython.org/Phoenix/docs/html/wx.Frame.html