diff --git a/invesalius/invesalius.py b/invesalius/invesalius.py index 23da2ce..95687c8 100755 --- a/invesalius/invesalius.py +++ b/invesalius/invesalius.py @@ -34,7 +34,7 @@ if sys.platform != 'win32': import wx import wx.lib.pubsub as ps -import wx.lib.agw.advancedsplash as AS +import wx.lib.agw.advancedsplash as agw import gui.language_dialog as lang_dlg import i18n @@ -67,7 +67,7 @@ class InVesalius(wx.App): # ------------------------------------------------------------------ -class SplashScreen(AS.AdvancedSplash): +class SplashScreen(agw.AdvancedSplash): """ Splash screen to be shown in InVesalius initialization. """ @@ -127,13 +127,15 @@ class SplashScreen(AS.AdvancedSplash): bmp = wx.Image(path).ConvertToBitmap() - style = wx.SPLASH_TIMEOUT | wx.SPLASH_CENTRE_ON_SCREEN - AS.AdvancedSplash.__init__(self, + style = wx.SPLASH_TIMEOUT | wx.SPLASH_CENTRE_ON_SCREEN |\ + wx.FRAME_SHAPED + agw.AdvancedSplash.__init__(self, bitmap=bmp, style=style, timeout=5000, id=-1, parent=None) + self.Bind(wx.EVT_CLOSE, self.OnClose) # Importing takes sometime, therefore it will be done diff --git a/invesalius/session.py b/invesalius/session.py index d1bb38d..2900a57 100644 --- a/invesalius/session.py +++ b/invesalius/session.py @@ -231,10 +231,10 @@ class WriteSession(Thread): def run(self): while self.runing: time.sleep(10) - #try: - self.Write() - #except AttributeError: - # pass + try: + self.Write() + except AttributeError: + debug("Session: trying to write into inexistent file") def Stop(self): self.runing = 0 -- libgit2 0.21.2