On Thu, Sep 12, 2019 at 5:50 AM kiteh <kiteh.0...@gmail.com> wrote: > Hi everyone, > > I chanced across animBot, a maya plugin/ tooling where it contains several > nice features for animation related workflows. > Not here to promote the tool but there is a feature that I am interested > but could not find much information. Hoping someone here could shed some > light. > > In this link <http://www.animbot.ca/tooltips/#play_keys>, all these > 'images' as you see in the link appears as tooltip whenever the mouse > cursor is hover over a button. > My question here is how do I implement it? > > So far, my only experience with the use of tooltips is through the use of > text, eg. > self.my_button("this is my button tooltip") > > If I were to try and implement something similar as above, do I need to > create a template or something, and insert that as a tooltip? >
Check this out: https://doc.qt.io/qt-5/qtooltip.html Tooltips (in Qt) can be rich text. So that means you can design your tooltip as a snippet of html . If you want to access resource from your qrc, like icons, you can use notation like ":/myimage.png" > Additionally, is it possible to put this into/ as part of the annotation > for the tool icons in maya shelves? > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/2a5e8716-e23c-4e4c-bc00-184e297c1478%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/2a5e8716-e23c-4e4c-bc00-184e297c1478%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2pbA4eLZzXziiNtun0-Awqr08sqfYjOEuZXGogL1RZvw%40mail.gmail.com.