summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5bfb891)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4665
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#----------------------------------------------------------------------
class SplashScreen(wxFrame):
#----------------------------------------------------------------------
class SplashScreen(wxFrame):
- def __init__(self, parent, ID=-1, title="SplashScreen", style=wxSTAY_ON_TOP,
- duration=1500, bitmapfile="bitmaps/splashscreen.bmp", callback = None):
+ def __init__(self, parent, ID=-1, title="SplashScreen",
+ style=wxSIMPLE_BORDER|wxSTAY_ON_TOP,
+ duration=1500, bitmapfile="bitmaps/splashscreen.bmp",
+ callback = None):
'''
parent, ID, title, style -- see wxFrame
duration -- milliseconds to display the splash screen
'''
parent, ID, title, style -- see wxFrame
duration -- milliseconds to display the splash screen
self.timer.Start(duration, 1) # one-shot only
EVT_LEFT_DOWN(self, self.OnMouseClick)
self.timer.Start(duration, 1) # one-shot only
EVT_LEFT_DOWN(self, self.OnMouseClick)
+ def OnPaint(self, event):
+ dc = wxPaintDC(self)
+ dc.DrawBitmap(self.bitmap, 0,0, false)
+
def OnSplashExitDefault(self, event=None):
self.Close(true)
def OnSplashExitDefault(self, event=None):
self.Close(true)