Skip to content

Commit

Permalink
Add setToolTip.
Browse files Browse the repository at this point in the history
Contributed by @RafalBuchner.
This closes #142.
  • Loading branch information
typesupply committed Dec 20, 2023
1 parent 42abd02 commit 1862729
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Lib/vanilla/vanillaBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,12 @@ def setShowFocusRing(self, value):
value = NSFocusRingTypeNone
self._nsObject.setFocusRingType_(value)

def setToolTip(self, toolTipMessage):
"""
Add tool tip message to the object when hover over it with the cursor.
"""
self._nsObject.setToolTip_(toolTipMessage)

# ------------
# Base Control
# ------------
Expand Down

0 comments on commit 1862729

Please sign in to comment.