Widget.setTooltipText

void setTooltipText(string text = null)

Sets text as the contents of the tooltip. This function will take care of setting #GtkWidget:has-tooltip to true and of the default handler for the #GtkWidget::query-tooltip signal.

See also the #GtkWidget:tooltip-text property and [gtk.tooltip.Tooltip.setText].

Parameters

textthe contents of the tooltip for widget