wx.ToolTip

Inheritance diagram for wx.ToolTip:



Description

This class holds information about a tooltip associated with a window (see wx.Window.SetToolTip).

The two static methods, wx.ToolTip.Enable and wx.ToolTip.SetDelay can be used to globally alter tooltips behaviour.

Derived From

Properties Summary

Class API

Methods

__init__(tip)

Parameters:

  • tip (string)

Returns:

wx.ToolTip


Enable(flag)

Enable or disable tooltips globally.

Parameters:

  • flag (bool): True to enable tooltips, False to disable them globally.

Note

May not be supported on all platforms (eg. wxCocoa).


GetTip()

Get the tooltip text.


Returns:

string


GetWindow()

Get the associated window.


Returns:

wx.Window


SetDelay(msecs)

Set the delay after which the tooltip appears.

Parameters:

  • msecs (long): The delay in milliseconds.

Note

May not be supported on all platforms (eg. wxCocoa).


SetTip(tip)

Set the tooltip text.

Parameters:

  • tip (string): The tooltip text.

Properties

Tip
See GetTip and SetTip
Window
See GetWindow