phoenix_title wx.adv.SplashScreen

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()

class_hierarchy Class Hierarchy

Inheritance diagram for class SplashScreen:

method_summary Methods Summary

__init__

Construct the splash screen passing a bitmap, a style, a timeout, a window id, optional position and size, and a window style.

GetBitmap

Get the spash screen’s bitmap

GetClassDefaultAttributes

GetSplashStyle

Returns the splash style (see wx.adv.SplashScreen for details).

GetTimeout

Returns the timeout in milliseconds.

SetBitmap

Set a new bitmap for the splash screen.


property_summary Properties Summary

Bitmap

See GetBitmap and SetBitmap

SplashStyle

See GetSplashStyle

Timeout

See GetTimeout


api Class API

class wx.adv.SplashScreen(Frame)

Possible constructors:

SplashScreen(bitmap, splashStyle, milliseconds, parent, id=ID_ANY,
             pos=DefaultPosition, size=DefaultSize,
             style=BORDER_SIMPLE|FRAME_NO_TASKBAR|STAY_ON_TOP)

SplashScreen shows a window with a thin border, displaying a bitmap describing your application.


Methods

__init__(self, bitmap, splashStyle, milliseconds, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=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.

Parameters:
  • bitmap (wx.Bitmap) –

  • splashStyle (long) –

  • milliseconds (int) –

  • parent (wx.Window) –

  • id (wx.WindowID) –

  • pos (wx.Point) –

  • size (wx.Size) –

  • style (long) –



GetBitmap(self)

Get the spash screen’s bitmap

Return type:

Bitmap



static GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL)
Parameters:

variant (WindowVariant) –

Return type:

VisualAttributes



GetSplashStyle(self)

Returns the splash style (see wx.adv.SplashScreen for details).

Return type:

long



GetTimeout(self)

Returns the timeout in milliseconds.

Return type:

int



SetBitmap(self, bitmap)

Set a new bitmap for the splash screen.


Properties

Bitmap

See GetBitmap and SetBitmap



SplashStyle

See GetSplashStyle



Timeout

See GetTimeout