gtk.Tooltipsadd tips to your widgets.Synopsisgtk.Tooltipsgtk.Objectgtk.Tooltipsenabledisableset_tipwidgettip_texttip_privateNoneforce_windowFunctionsgtk.tooltips_data_getwidgetAncestry+-- gobject.GObject
+-- gtk.Object
+-- gtk.Tooltips
gtk.Tooltips Propertiesgtk.Object PropertiesAttributes
"tip_window"ReadThe window that the tooltip is displayed in."tip_label"ReadThe label that displays the tooltip text."active_tips_data"ReadThe data associated with the active tooltip."tips_data_list"ReadA list containing the data associated with the tooltips in a tooltips group. For each tooltip the data is a tuple containing:
the tooltip object, the associated widget, the tooltip text and the tooltip
private text."delay"ReadThe delay between the mouse pausing over the widget and
the display of the tooltip in msec."enabled"ReadIf True the tooltips are
enabled"use_sticky_delay"ReadIf True shorten the delay for
showing a tooltip on another widget is already showing a tooltip."timer_tag"ReadThe tag of the timeout handler used for the
delay.
gtk.Tooltips Signal Prototypesgobject.GObject Signal Prototypesgtk.Object Signal PrototypesDescriptionThis method is deprecated in PyGTK 2.12 and aboveTooltips are the messages that appear next to a widget when the
mouse pointer is held over it for a short amount of time. They are
especially helpful for adding more verbose descriptions of things such as
buttons in a toolbar. An individual tooltip belongs to a group of tooltips.
A group is created with a call to the gtk.Tooltips() constructor. Every
tooltip in the group can then be turned off with a call to the disable()
method and enabled with the enable()
method. To assign a tip to a particular gtk.Widget, use the
set_tip()
method.Tooltips can only be set on widgets which have their own X
window. To check if a widget has its own window use
widget.flags()>k.NO_WINDOW. To add a tooltip to a
widget that doesn't have its own window, place the widget inside a gtk.EventBox and
add a tooltip to the eventbox instead.The default appearance of all tooltips in a program is determined
by the current theme that the user has selected. Information about the
tooltip (if any) associated with an arbitrary widget can be retrieved using
the gtk.tooltips_data_get()
function.Constructorgtk.TooltipsReturns :a new gtk.Tooltips
objectThis method is deprecated in PyGTK 2.12 and aboveCreates an empty gtk.Tooltips
group.Methodsgtk.Tooltips.enableenableThis method is deprecated in PyGTK 2.12 and aboveThe enable() method enables a group of
tooltips. A tooltip will be displayed over its associated widget when
the mouse pointer pauses over the widget.gtk.Tooltips.disabledisableThis method is deprecated in PyGTK 2.12 and aboveThe disable() method disables a group
of tooltips. A tooltip will not be displayed over its associated widget when
the mouse pointer pauses over the widget.gtk.Tooltips.set_tipset_tipwidgettip_texttip_privateNonewidget :a gtk.Widgettip_text :the tooltip texttip_private :the tooltip private text for context sensitive displayThis method is deprecated in PyGTK 2.12 and aboveThe set_tips() method creates a tooltip
for the specified widget. The text specified by
tooltip_text will be displayed when the mouse pointer
pauses over widget if the tooltips are
enabled..gtk.Tooltips.force_windowforce_windowThis method is deprecated in PyGTK 2.12 and aboveThe force_window() method ensures that
the window used for displaying the given tooltips is created. Applications
should never have to call this function, since PyGTK takes care of
this.Functionsgtk.tooltips_data_getgtk.tooltips_data_getwidgetwidget :a widgetReturns :a tuple containing the tooltip data associated
with widget or
NoneThis method is deprecated in PyGTK 2.12 and aboveThe gtk.tooltips_data_get() function
returns a tuple containing the tooltip data associated with
widget. The tuple contains:the gtk.Tooltips group
containing the tooltipthe widgetthe tooltip text stringthe tooltip private text string or
NoneIf widget does not have an associated
tooltip this function returns None.