Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tooltips when user hovers over UI elements #570

Open
machawk1 opened this issue May 16, 2024 · 1 comment
Open

Add tooltips when user hovers over UI elements #570

machawk1 opened this issue May 16, 2024 · 1 comment

Comments

@machawk1
Copy link
Owner

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

@machawk1
Copy link
Owner Author

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 added a commit that referenced this issue May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant