Skip to content

Commit 549b7af

Browse files
authored
fix: set tooltip on label as well (#711)
1 parent 9aa9206 commit 549b7af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/magicgui/widgets/bases/_widget.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,9 @@ def tooltip(self) -> str | None:
328328
@tooltip.setter
329329
def tooltip(self, value: str | None) -> None:
330330
"""Set the tooltip for this widget."""
331-
return self._widget._mgui_set_tooltip(value)
331+
self._widget._mgui_set_tooltip(value)
332+
if (lbl := self._labeled_widget()) is not None:
333+
lbl._label_widget.tooltip = value
332334

333335
def _labeled_widget(self) -> _LabeledWidget | None:
334336
"""Return _LabeledWidget container, if applicable."""

0 commit comments

Comments
 (0)