AdvancedSplash tries to reproduce the behavior of wx.SplashScreen, with some enhancements.
This is the main class implementation.
__init__ | Default class constructor. |
GetSplashStyle | Returns a list of strings and a list of integers containing the styles. |
GetText | Returns the text displayed on AdvancedSplash. |
GetTextColour | Gets the colour for the text in AdvancedSplash. |
GetTextFont | Gets the font for the text in AdvancedSplash. |
GetTextPosition | Returns the text position inside AdvancedSplash frame. |
OnCharEvents | Handles the wx.EVT_CHAR event for AdvancedSplash. |
OnCloseWindow | Handles the wx.EVT_CLOSE event for AdvancedSplash. |
OnMouseEvents | Handles the wx.EVT_MOUSE_EVENTS events for AdvancedSplash. |
OnNotify | Handles the timer expiration, and calls the Close() method. |
OnPaint | Handles the wx.EVT_PAINT event for AdvancedSplash. |
SetSplashShape | Sets AdvancedSplash shape using the region created from the bitmap. |
SetText | Sets the text to be displayed on AdvancedSplash. |
SetTextColour | Sets the colour for the text in AdvancedSplash. |
SetTextFont | Sets the font for the text in AdvancedSplash. |
SetTextPosition | Sets the text position inside AdvancedSplash frame. |
ShadowBitmap | Applies a mask on the bitmap accordingly to user input. |
AdvancedSplash tries to reproduce the behavior of wx.SplashScreen, with some enhancements.
This is the main class implementation.
Default class constructor.
Parameters: |
|
|||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Raise : | Exception in the following cases:
|
Returns a list of strings and a list of integers containing the styles.
Returns: | Two Python lists containing the style name and style values for AdvancedSplash. |
---|
Returns the text displayed on AdvancedSplash.
Returns: | A string representing the text drawn on top of the AdvancedSplash bitmap. |
---|
Gets the colour for the text in AdvancedSplash.
Returns: | An instance of wx.Colour. |
---|
Gets the font for the text in AdvancedSplash.
Returns: | An instance of wx.Font to draw the text and a wx.Size object containing the text width an height, in pixels. |
---|
Returns the text position inside AdvancedSplash frame.
Returns: | A tuple containing the text x and y position inside the AdvancedSplash frame. |
---|
Handles the wx.EVT_CHAR event for AdvancedSplash.
Parameters: | event – a wx.KeyEvent to be processed. |
---|
Note
This reproduces the behavior of wx.SplashScreen.
Handles the wx.EVT_CLOSE event for AdvancedSplash.
Parameters: | event – a wx.CloseEvent to be processed. |
---|
Note
This reproduces the behavior of wx.SplashScreen.
Handles the wx.EVT_MOUSE_EVENTS events for AdvancedSplash.
Parameters: | event – a wx.MouseEvent to be processed. |
---|
Note
This reproduces the behavior of wx.SplashScreen.
Handles the wx.EVT_PAINT event for AdvancedSplash.
Parameters: | event – a wx.PaintEvent to be processed. |
---|
Sets AdvancedSplash shape using the region created from the bitmap.
Parameters: | event – a wx.WindowCreateEvent event (GTK only, as GTK supports setting the window shape only during window creation). |
---|
Sets the text to be displayed on AdvancedSplash.
Parameters: | text (string or None) – the text we want to display on top of the bitmap. If text is set to None, nothing will be drawn on top of the bitmap. |
---|
Sets the colour for the text in AdvancedSplash.
Parameters: | colour – the text colour to use while drawing the text on top of our bitmap. If colour is None, then wx.BLACK is used. |
---|
Sets the font for the text in AdvancedSplash.
Parameters: | font (wx.Font or None) – the font to use while drawing the text on top of our bitmap. If font is None, a simple generic font is generated. |
---|
Sets the text position inside AdvancedSplash frame.
Parameters: | position (tuple or None) – the text position inside our bitmap. If position is None, the text will be placed at the top-left corner. |
---|
Applies a mask on the bitmap accordingly to user input.
Parameters: |
|
---|---|
Returns: | A masked version of the input bitmap, an instance of wx.Bitmap. |