GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Table of Contents
  • wx.ToolTip
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx

This view

  • Original page
  • New address

GeezerVison is showing docs.wxpython.org — wx.ToolTip — wxPython 4.3.2 Docs

phoenix_title wx.ToolTip¶

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 where supported.


class_hierarchy Class Hierarchy¶

Inheritance diagram for class ToolTip:

Inheritance diagram of ToolTip


method_summary Methods Summary¶

__init__

Constructor.

Enable

Enable or disable tooltips globally.

GetTip

Get the tooltip text.

GetWindow

Get the associated window.

SetAutoPop

Set the delay after which the tooltip disappears or how long a tooltip remains visible.

SetDelay

Set the delay after which the tooltip appears.

SetMaxWidth

Set tooltip maximal width in pixels.

SetReshow

Set the delay between subsequent tooltips to appear.

SetTip

Set the tooltip text.


property_summary Properties Summary¶

Tip

See GetTip and SetTip

Window

See GetWindow


api Class API¶

class wx.ToolTip(Object)¶

Possible constructors:

ToolTip(tip) -> None

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


Methods¶

__init__(self, tip)¶

Constructor.

Parameters:

tip (string)

Return type:

None



static Enable(flag)¶

Enable or disable tooltips globally.

Parameters:

flag (bool)

Return type:

None

Note

This function is only effective for the tooltips set using wx.Window.SetToolTip in wxMSW. It is not implemented in wxOSX or Qt and doesn’t have any effect in wxGTK with GTK 3.10 or later.



GetTip(self)¶

Get the tooltip text.

Return type:

str



GetWindow(self)¶

Get the associated window.

Return type:

wx.Window



static SetAutoPop(msecs)¶

Set the delay after which the tooltip disappears or how long a tooltip remains visible.

Parameters:

msecs (long)

Return type:

None

Note

May not be supported on all platforms (eg. Cocoa, GTK).



static SetDelay(msecs)¶

Set the delay after which the tooltip appears.

Parameters:

msecs (long)

Return type:

None

Note

May not be supported on all platforms.



static 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.

Parameters:

width (int)

Return type:

None

Note

Currently this function is MSW-only.



static SetReshow(msecs)¶

Set the delay between subsequent tooltips to appear.

Parameters:

msecs (long)

Return type:

None

Note

May not be supported on all platforms (eg. Cocoa, GTK).



SetTip(self, tip)¶

Set the tooltip text.

Parameters:

tip (string)

Return type:

None


Properties¶

Tip¶

See GetTip and SetTip



Window¶

See GetWindow

© Copyright 2012-2026, The wxPython Team. Created using Sphinx 9.1.0 and the python-docs-theme.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.