Module SuperToolTip
[hide private]
[frames] | no frames]

Module SuperToolTip

source code


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.


Supported Platforms
===================

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


Latest Revision: Andrea Gavana @ 07 October 2008, 22.00 GMT
Version 0.1

Classes [hide private]
  ToolTipWindowBase
Base class for the different Windows and Mac implementation.
  ToolTipWindow
A simple wx.PopupWindow that holds fancy tooltips.
  SuperToolTip
The main class for SuperToolTip, which holds all the methods and setters/getters available to the user.
Functions [hide private]
 
GetStyleKeys()
Returns the predefined styles keywords.
source code
 
MakeBold(font)
Makes a font bold.
source code
 
ExtractLink(line)
Extract the link from an hyperlink line.
source code
Variables [hide private]
  osVersion = (8, 5, 1)
  _libimported = 'MH'
  _colorSchemes = {'Beige': (wx.Colour(255, 255, 255, 255), wx.C...
Function Details [hide private]

MakeBold(font)

source code 

Makes a font bold. Utility method.

Parameters:
  • font - the font to be made bold.

ExtractLink(line)

source code 

Extract the link from an hyperlink line.

Parameters:
  • line - the line of text to be processed.

Variables Details [hide private]

_colorSchemes

Value:
{'Beige': (wx.Colour(255, 255, 255, 255),
           wx.Colour(242, 242, 223, 255),
           wx.Colour(198, 195, 160, 255),
           wx.Colour(0, 0, 0, 255)),
 'Blue': (wx.Colour(255, 255, 255, 255),
          wx.Colour(202, 220, 246, 255),
          wx.Colour(150, 180, 222, 255),
          wx.Colour(0, 0, 0, 255)),
...