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.TipWindow
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx

This view

  • Original page
  • New address

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

phoenix_title wx.TipWindow¶

Shows simple text in a popup tip window on creation.

This is used by wx.SimpleHelpProvider to show popup help. The window automatically destroys itself when the user clicks on it or it loses the focus.

You may also use this class to emulate the tooltips when you need finer control over them than what the standard tooltips provide.

See also

wx.ToolTip


class_hierarchy Class Hierarchy¶

Inheritance diagram for class TipWindow:

Inheritance diagram of TipWindow


method_summary Methods Summary¶

__init__

Default constructor.

Create

Construct the actual window object.

GetClassDefaultAttributes

SetBoundingRect

By default, the tip window disappears when the user clicks the mouse or presses a keyboard key or if it loses focus in any other way - for example because the user switched to another application window.


api Class API¶

class wx.TipWindow(Window)¶

Possible constructors:

TipWindow() -> None

TipWindow(parent, text, maxLength=100) -> None

Shows simple text in a popup tip window on creation.


Methods¶

__init__(self, *args, **kw)¶

overload Overloaded Implementations:



__init__ (self)

Default constructor.

If this constructor is used, Create must be called later to actually create the window.

Prefer using New instead.

Return type:

None

Added in version 4.3/wxWidgets-3.3.2.



__init__ (self, parent, text, maxLength=100)

Use New instead of this in new code.

This constructor is preserved only for backward compatibility, don’t use it in new code.

Parameters:
  • parent (wx.Window)

  • text (string)

  • maxLength (int)

Return type:

None





Create(self, parent, text, maxLength=100, windowPtr=None, rectBounds=None)¶

Construct the actual window object.

The tip is shown immediately.

Parameters:
  • parent (wx.Window) – The parent window, must be non-null

  • text (string) – The text to show, may contain the new line characters

  • maxLength (int) – The length of each line, in pixels. Set to a very large value to avoid wrapping lines

  • windowPtr (TipWindow) – Simply passed to SetTipWindowPtr below, please see its documentation for the description of this parameter

  • rectBounds (wx.Rect) – If non-null, passed to SetBoundingRect below, please see its documentation for the description of this parameter

Return type:

bool

Added in version 4.3/wxWidgets-3.3.2.



static GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL)¶
Parameters:

variant (WindowVariant)

Return type:

wx.VisualAttributes



SetBoundingRect(self, rectBound)¶

By default, the tip window disappears when the user clicks the mouse or presses a keyboard key or if it loses focus in any other way - for example because the user switched to another application window.

Additionally, if a non-empty rectBound is provided, the tip window will also automatically close if the mouse leaves this area. This is useful to dismiss the tip mouse when the mouse leaves the object it is associated with.

Parameters:

rectBound (wx.Rect) – The bounding rectangle for the mouse in the screen coordinates

Return type:

None

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