wail icon indicating copy to clipboard operation
wail copied to clipboard

Add tooltips when user hovers over UI elements

Open machawk1 opened this issue 1 year ago • 3 comments

This would improve accessibility but also help to unpack the behavior of the elements when selected beyond their brief label.

machawk1 avatar May 16 '24 17:05 machawk1

The tooltip functionality appears to be selectively broken (for wx.Buttons) on macOS 14.1.2 with wxpython 4.2.1. The example below from their docs does not produce a tooltip when run.

import wx 
  
  
class Example(wx.Frame): 
  
    def __init__(self, *args, **kwargs): 
        super(Example, self).__init__(*args, **kwargs) 
        self.InitUI() 
  
    def InitUI(self): 
        self.locale = wx.Locale(wx.LANGUAGE_ENGLISH) 
  
        # create parent panel 
        self.pnl = wx.Panel(self) 
  
        # create button at point (20, 20) 
        self.btn = wx.Button(self.pnl, id = 1, label ="Button") 
          
        # set tooltip for button 
        self.btn.SetToolTip("Button ToolTip") 
  
        self.SetSize((350, 250)) 
        self.SetTitle('wx.Button') 
        self.Centre() 
  
def main(): 
    app = wx.App() 
    ex = Example(None) 
    ex.Show() 
    app.MainLoop() 
  
if __name__ == '__main__': 
    main() 

machawk1 avatar May 16 '24 17:05 machawk1

I ran the above code on macOS 14.5 (Apple M3) and wxPython 4.2.1 and the tooltip appeared as expected. This can likely be implemented using code akin to the above example.

machawk1 avatar Aug 05 '24 17:08 machawk1

d052dd5 added more strings to the other advanced panel. Still need to add base string to the variety of UI elements in the Heritrix panel.

machawk1 avatar Aug 05 '24 18:08 machawk1