pygubu-designer
pygubu-designer copied to clipboard
Tooltips for widgets
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
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.
Awesome - thanks for your quick response! Looking forward to having this integrated into the designer.