pygubu-designer icon indicating copy to clipboard operation
pygubu-designer copied to clipboard

Tooltips for widgets

Open aaronsegura opened this issue 2 years ago • 2 comments

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

aaronsegura avatar Sep 02 '22 20:09 aaronsegura

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 avatar Sep 02 '22 21:09 alejandroautalan

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

aaronsegura avatar Sep 02 '22 23:09 aaronsegura