[Python] Show message when hover over button

[Python] Show message when hover over button

Anonymous
Not applicable
3,187 Views
3 Replies
Message 1 of 4

[Python] Show message when hover over button

Anonymous
Not applicable

Hi everyone,

 

Im creating a script in python. I have an interface with complex parameters and I would love to show a message when I hover over a button or float/int field. I know Maya does that standard for its user interface but I cant find anything for python scripting.

 

Is this actually possible?

0 Likes
3,188 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

Anyone that knows a solution to this?

0 Likes
Message 3 of 4

lee.dunham
Collaborator
Collaborator

If using a Maya library interface then you<ll want to use the annotation flag.

https://help.autodesk.com/cloudhelp/2018/ENU/Maya-Tech-Docs/Commands/button.html#flagannotation

 

If using PyQt or PySide, then look for the setToolTip function.

https://srinikom.github.io/pyside-docs/PySide/QtGui/QWidget.html#PySide.QtGui.PySide.QtGui.QWidget.s...

 

If you have already tried these, and they are still not showing, then check to make sure the display tooltips option is enabled in Maya's Preferences.

https://forums.autodesk.com/t5/maya-forum/maya-tooltops-not-shown/m-p/5611047/highlight/true#M26238

 

Message 4 of 4

forrest.brent
Enthusiast
Enthusiast

How about a custom callback for mouseOver?

0 Likes