We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9aa9206 commit 549b7afCopy full SHA for 549b7af
src/magicgui/widgets/bases/_widget.py
@@ -328,7 +328,9 @@ def tooltip(self) -> str | None:
328
@tooltip.setter
329
def tooltip(self, value: str | None) -> None:
330
"""Set the tooltip for this widget."""
331
- return self._widget._mgui_set_tooltip(value)
+ self._widget._mgui_set_tooltip(value)
332
+ if (lbl := self._labeled_widget()) is not None:
333
+ lbl._label_widget.tooltip = value
334
335
def _labeled_widget(self) -> _LabeledWidget | None:
336
"""Return _LabeledWidget container, if applicable."""
0 commit comments