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

Tooltips for widgets #148

Open
aaronsegura opened this issue Sep 2, 2022 · 2 comments
Open

Tooltips for widgets #148

aaronsegura opened this issue Sep 2, 2022 · 2 comments
Labels
enhancement New feature or request wishlist

Comments

@aaronsegura
Copy link

Hello!

Great project! I'm loving it so far.

Is there any way to add hover-over tooltips to widgets in the layouts I create, or is that something I have to do manually after importing the layout in my code?

Thanks

@alejandroautalan
Copy link
Owner

Hello Aaron thanks for trying pygubu. I'm glad that you liked it.

I still haven't decided how to incorporate the tooltips in the designer.
So, at the moment they have to be added manually in the code.
Pygubu comes with a basic tooltip implementation, which can be used in the following way in code:

import pygubu.widgets.simpletooltip as tooltip
# . . . 
button = builder.get_object("button1")
# add a tooltip
tooltip.create(button, "A tooltip for the button")
# . . . 

Or you can use your preferred implementation.
I also want tool-tips in the designer, so this is going to the wishlist.

Regards
Alejandro A.

@alejandroautalan alejandroautalan added enhancement New feature or request wishlist labels Sep 2, 2022
@aaronsegura
Copy link
Author

Awesome - thanks for your quick response! Looking forward to having this integrated into the designer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wishlist
Projects
None yet
Development

No branches or pull requests

2 participants