def ShowSplashScreen(self):
from wx.lib.agw.advancedsplash import AdvancedSplash
bmp = wx.Image(self.splashPath).ConvertToBitmap()
self.splash = AdvancedSplash(None, bitmap=bmp)
# process all events
# even the events generated by splash themself during showing
if wx.Platform == '__WXMSW__':
self.splash.Show()
self.splash.ProcessEvent(wx.PaintEvent())
else:
for i in range(0, 30):
wx.Yield()
time.sleep(0.01)
评论列表
文章目录