Base class for the different Windows and Mac implementation.
__init__ | Default class constructor. |
AlphaCycle | Handles the wx.EVT_TIMER event for SuperToolTip. |
CalculateBestPosition | |
CalculateBestSize | Calculates the SuperToolTip window best size. |
DropShadow | Adds a shadow under the window. |
Invalidate | Invalidate SuperToolTip size and repaint it. |
MakeWindowTransparent | Makes the SuperToolTip window transparent. |
OnDestroy | Handles the wx.EVT_LEFT_DOWN, wx.EVT_LEFT_DCLICK and wx.EVT_KILL_FOCUS |
OnEraseBackground | Handles the wx.EVT_ERASE_BACKGROUND event for SuperToolTip. |
OnMouseMotion | Handles the wx.EVT_MOTION event for SuperToolTip. |
OnPaint | Handles the wx.EVT_PAINT event for SuperToolTip. |
OnSize | Handles the wx.EVT_SIZE event for SuperToolTip. |
SetFont | Sets the SuperToolTip font globally. |
StartAlpha | Start the timer which set the alpha channel for SuperToolTip. |
Base class for the different Windows and Mac implementation.
Default class constructor.
Parameters: |
|
---|
Handles the wx.EVT_TIMER event for SuperToolTip.
Parameters: | event – a wx.TimerEvent event to be processed. |
---|
Calculates the SuperToolTip window best size.
Adds a shadow under the window.
Parameters: | drop – whether to drop a shadow or not. |
---|
Note
This method is available only on Windows and requires Mark Hammond’s pywin32 package.
Invalidate SuperToolTip size and repaint it.
Makes the SuperToolTip window transparent.
Parameters: | amount – the alpha channel value. |
---|
Note
This method is available only on Windows and requires Mark Hammond’s pywin32 package.
Handles the wx.EVT_LEFT_DOWN, wx.EVT_LEFT_DCLICK and wx.EVT_KILL_FOCUS events for SuperToolTip. All these events destroy the SuperToolTip, unless the user clicked on one hyperlink.
Parameters: | event – a wx.MouseEvent or a wx.FocusEvent event to be processed. |
---|
Handles the wx.EVT_ERASE_BACKGROUND event for SuperToolTip.
Parameters: | event – a wx.EraseEvent event to be processed. |
---|
Note
This method is intentionally empty to reduce flicker.
Handles the wx.EVT_MOTION event for SuperToolTip.
Parameters: | event – a wx.MouseEvent event to be processed. |
---|
Handles the wx.EVT_PAINT event for SuperToolTip.
Parameters: | event – a wx.PaintEvent event to be processed. |
---|
Handles the wx.EVT_SIZE event for SuperToolTip.
Parameters: | event – a wx.SizeEvent event to be processed. |
---|
Sets the SuperToolTip font globally.
Parameters: | font – the font to set. |
---|
Start the timer which set the alpha channel for SuperToolTip.
Parameters: | isShow – whether SuperToolTip is being shown or deleted. |
---|
Note
This method is available only on Windows and requires Mark Hammond’s pywin32 package.