AGW Logo

agw_title supertooltip

SuperToolTip is a class that mimics the behaviour of wx.TipWindow and generic tooltip windows, although it is a custom-drawn widget.


description Description

SuperToolTip is a class that mimics the behaviour of wx.TipWindow and generic tooltip windows, although it is a custom-drawn widget.

This class supports:

  • Blended triple-gradient for the tooltip background;
  • Header text and header image, with possibility to set the header font indipendently;
  • Footer text and footer image, with possibility to set the footer font indipendently;
  • Multiline text message in the tooltip body, plus an optional image as “body image”;
  • Bold lines and hyperlink lines in the tooltip body;
  • A wide set of predefined drawing styles for the tooltip background;
  • Drawing of separator lines after the header and/or before the footer;
  • Rounded corners and shadows below the tooltip window (Windows XP only);
  • Fade in/fade out effects (Windows XP only);
  • User-settable delays for the delay after which the tooltip appears and the delay after which the tooltip is destroyed.

And a lot more. Check the demo for an almost complete review of the functionalities.


usage Usage

Usage example:

import wx
import wx.lib.agw.supertooltip as STT

class MyFrame(wx.Frame):

    def __init__(self, parent):

        wx.Frame.__init__(self, parent, -1, "SuperToolTip Demo")

        panel = wx.Panel(self)
        button = wx.Button(panel, -1, "I am the SuperToolTip target", pos=(100, 50))

        tip = STT.SuperToolTip("A nice tooltip message")

        tip.SetHeader("Hello World")
        tip.SetTarget(button)
        tip.SetDrawHeaderLine(True)

        tip.ApplyStyle("Office 2007 Blue")

        tip.SetDropShadow(True)


# our normal wxApp-derived class, as usual

app = wx.PySimpleApp()

frame = MyFrame(None)
app.SetTopWindow(frame)
frame.Show()

app.MainLoop()

This code snippet can be downloaded, see this example script.

Note

Some of the AGW snippets of code in the documentation use images and external files (to create bitmaps or access external data). As these files are not provided in these snippets, you should make the approriate modifications to the code to actually run it.


platforms Supported Platforms

SuperToolTip has been tested on the following platforms:
  • Windows (Windows XP).

styles Window Styles

No particular window styles are available for this class.


events Events Processing

No custom events are available for this class.


license License And Version

SuperToolTip is distributed under the wxPython license.

Latest Revision: Andrea Gavana @ 14 Sep 2011, 21.00 GMT

Version 0.4

Module author: Andrea Gavana <andrea.gavana@gmail.com>


hierarchy Inheritance Diagram

Inheritance diagram for module: supertooltip

Inheritance diagram of supertooltip.SuperToolTip, supertooltip.ToolTipWindow, supertooltip.ToolTipWindowBase


svn_main SVN Revisions

A graphical representation of the SVN commits in the last year.

Click on any date in the picture to jump to that particular revision page, containing information about committers, log messages and SVN diffs.

supertooltip

Revision Graph For supertooltip


2to3 Python 3 Issues (via 2to3)

No issues have been detected by 2to3.py.