SuperToolTip
is a class that mimics the behaviour of TipWindow
and generic tooltip
windows, although it is a custom-drawn widget.
SuperToolTip
is a class that mimics the behaviour of TipWindow
and generic tooltip
windows, although it is a custom-drawn widget.
This class supports:
And a lot more. Check the demo for an almost complete review of the functionalities.
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.App(0)
frame = MyFrame(None)
app.SetTopWindow(frame)
frame.Show()
app.MainLoop()
SuperToolTip
has been tested on the following platforms:No particular window styles are available for this class.
No custom events are available for this class.
SuperToolTip
is distributed under the wxPython license.
Latest Revision: Andrea Gavana @ 04 Feb 2013, 21.00 GMT
Version 0.5
ExtractLink |
Extract the link from an hyperlink line. |
GetStyleKeys |
Returns the predefined styles keywords. |
MakeBold |
Makes a font bold. Utility method. |
SuperToolTip |
The main class for SuperToolTip , which holds all the methods |
ToolTipWindow |
A simple PopupWindow that holds fancy tooltips. |
ToolTipWindowBase |
Base class for the different Windows and Mac implementation. |