--- a/Beremiz.py Wed Apr 20 16:20:53 2016 +0300
+++ b/Beremiz.py Wed Apr 20 17:15:35 2016 +0300
@@ -43,6 +43,18 @@
return os.path.join(beremiz_dir,*args)
+ bmp = wx.Image(Bpath("images", "splash.png")).ConvertToBitmap() + #splash=AdvancedSplash(None, bitmap=bmp, style=wx.SPLASH_CENTRE_ON_SCREEN, timeout=4000) + splash = AdvancedSplash(None, bitmap=bmp) + # even the events generated by splash themself during showing if __name__ == '__main__':
print "\nUsage of Beremiz.py :"
@@ -94,11 +106,8 @@
wx.InitAllImageHandlers()
- bmp = wx.Image(Bpath("images", "splash.png")).ConvertToBitmap()
- #splash=AdvancedSplash(None, bitmap=bmp, style=wx.SPLASH_CENTRE_ON_SCREEN, timeout=4000)
- splash=AdvancedSplash(None, bitmap=bmp)
+ splash = ShowSplashScreen() if updateinfo_url is not None:
updateinfo = "Fetching %s" % updateinfo_url
# warn for possible updates