This class holds information about a tooltip associated with a window (see wx.Window.SetToolTip
).
The four static methods, wx.ToolTip.Enable
, wx.ToolTip.SetDelay
wx.ToolTip.SetAutoPop
and wx.ToolTip.SetReshow
can be used to globally alter tooltips behaviour.
Constructor. |
|
Enable or disable tooltips globally. |
|
Get the tooltip text. |
|
Get the associated window. |
|
Set the delay after which the tooltip disappears or how long a tooltip remains visible. |
|
Set the delay after which the tooltip appears. |
|
Set tooltip maximal width in pixels. |
|
Set the delay between subsequent tooltips to appear. |
|
Set the tooltip text. |
See |
wx.
ToolTip
(Object)¶Possible constructors:
ToolTip(tip)
This class holds information about a tooltip associated with a window (see Window.SetToolTip()).
__init__
(self, tip)¶Constructor.
tip (string) –
Enable
(flag)¶Enable or disable tooltips globally.
flag (bool) –
Note
May not be supported on all platforms (eg. Cocoa).
GetTip
(self)¶Get the tooltip text.
string
SetAutoPop
(msecs)¶Set the delay after which the tooltip disappears or how long a tooltip remains visible.
msecs (long) –
Note
May not be supported on all platforms (eg. Cocoa, GTK).
SetDelay
(msecs)¶Set the delay after which the tooltip appears.
msecs (long) –
Note
May not be supported on all platforms.
SetMaxWidth
(width)¶Set tooltip maximal width in pixels.
By default, tooltips are wrapped at a suitably chosen width. You can pass -1 as width to disable wrapping them completely, 0 to restore the default behaviour or an arbitrary positive value to wrap them at the given width.
Notice that this function does not change the width of the tooltips created before calling it.
width (int) –
Note
Currently this function is MSW-only.
SetReshow
(msecs)¶Set the delay between subsequent tooltips to appear.
msecs (long) –
Note
May not be supported on all platforms (eg. Cocoa, GTK).
SetTip
(self, tip)¶Set the tooltip text.
tip (string) –