wx.adv.SplashScreen shows a window with a thin border, displaying a bitmap describing your application.
Show it in application initialisation, and then either explicitly destroy it or let it time-out.
Example usage:
bitmap = wx.Bitmap('splash16.png', wx.BITMAP_TYPE_PNG)
splash = wx.adv.SplashScreen(bitmap, wx.SPLASH_CENTRE_ON_SCREEN | wx.SPLASH_TIMEOUT,
6000, None, -1, wx.DefaultPosition, wx.DefaultSize,
wx.BORDER_SIMPLE | wx.STAY_ON_TOP)
wx.Yield()
Construct the splash screen passing a bitmap, a style, a timeout, a window id, optional position and size, and a window style. |
|
Get the spash screen’s bitmap |
|
Returns the splash style (see wx.adv.SplashScreen for details). |
|
Returns the timeout in milliseconds. |
|
Set a new bitmap for the splash screen. |
See |
|
See |
wx.adv.
SplashScreen
(Frame)¶Possible constructors:
SplashScreen(bitmap : Bitmap, splashStyle : int, milliseconds : int,
parent : Window, id: int=ID_ANY, pos: Point=DefaultPosition, size:
Size=DefaultSize, style: int=BORDER_SIMPLE|FRAME_NO_TASKBAR|STAY_ON_TOP)
-> None
SplashScreen shows a window with a thin border, displaying a bitmap describing your application.
__init__
(self, bitmap : Bitmap, splashStyle : int, milliseconds : int, parent : Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=BORDER_SIMPLE|FRAME_NO_TASKBAR|STAY_ON_TOP)¶Construct the splash screen passing a bitmap, a style, a timeout, a window id, optional position and size, and a window style.
splashStyle is a bitlist of some of the following:
wx.adv.SPLASH_CENTRE_ON_PARENT
wx.adv.SPLASH_CENTRE_ON_SCREEN
wx.adv.SPLASH_NO_CENTRE
wx.adv.SPLASH_TIMEOUT
wx.adv.SPLASH_NO_TIMEOUT
milliseconds is the timeout in milliseconds.
GetClassDefaultAttributes
(variant: WindowVariant=WINDOW_VARIANT_NORMAL)¶variant (WindowVariant) –
VisualAttributes
GetSplashStyle
(self)¶Returns the splash style (see wx.adv.SplashScreen for details).
int
GetTimeout
(self)¶Returns the timeout in milliseconds.
int
SetBitmap
(self, bitmap: Bitmap)¶Set a new bitmap for the splash screen.
None
SplashStyle
¶See GetSplashStyle
Timeout
¶See GetTimeout