machawk1 / wail

:whale2: Web Archiving Integration Layer: One-Click User Instigated Preservation
https://matkelly.com/wail
MIT License
345 stars 32 forks source link

Status bar shows "Shows about dialog" when "About WAIL" menu item is hovered #486

Closed machawk1 closed 2 years ago

machawk1 commented 3 years ago
Screen Shot 2020-11-29 at 10 17 22 AM
machawk1 commented 3 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.

machawk1 commented 3 years ago

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.

machawk1 commented 2 years ago

This value can be specified on a per-menu item basis with the third parameters of menu.Append() in wxPython.

machawk1 commented 2 years ago

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