wx.SplashScreen

Inheritance diagram for wx.SplashScreen:



Description

wx.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.SplashScreen(bitmap, wx.SPLASH_CENTRE_ON_SCREEN|wx.SPLASH_TIMEOUT, 6000, None, style=wx.SIMPLE_BORDER|wx.STAY_ON_TOP)

wx.Yield()

Properties Summary

Class API

Methods

__init__(bitmap, splashStyle, milliseconds, parent, id=-1, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.SIMPLE_BORDER|wx.FRAME_NO_TASKBAR|wx.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.SPLASH_CENTRE_ON_PARENT
  • wx.SPLASH_CENTRE_ON_SCREEN
  • wx.SPLASH_NO_CENTRE
  • wx.SPLASH_TIMEOUT
  • wx.SPLASH_NO_TIMEOUT

milliseconds is the timeout in milliseconds.

Parameters:


Returns:

wx.SplashScreen


GetSplashStyle()

Returns the splash style (see __init__ for details).


Returns:

long


GetSplashWindow()

Returns the window used to display the bitmap.


Returns:

wx.SplashScreenWindow


GetTimeout()

Returns the timeout in milliseconds.


Returns:

int


Properties

SplashStyle
See GetSplashStyle
SplashWindow
See GetSplashWindow
Timeout
See GetTimeout