Commit 4191a83774b5d4b6c4901e736f268b714df7a982

Authored by tfmoraes
1 parent 6d85d994

Calling the function to handle the command line parameters inside the splashscreen

Showing 1 changed file with 1 additions and 5 deletions   Show diff stats
invesalius/invesalius.py
... ... @@ -166,7 +166,6 @@ class SplashScreen(wx.SplashScreen):
166 166 wx.Yield()
167 167 wx.CallLater(200,self.Startup)
168 168  
169   -
170 169 def Startup(self):
171 170 # Importing takes sometime, therefore it will be done
172 171 # while splash is being shown
... ... @@ -178,8 +177,7 @@ class SplashScreen(wx.SplashScreen):
178 177 self.control = Controller(self.main)
179 178  
180 179 self.fc = wx.FutureCall(1, self.ShowMain)
181   -
182   -
  180 + parse_comand_line()
183 181  
184 182 def OnClose(self, evt):
185 183 # Make sure the default handler runs too so this window gets
... ... @@ -203,7 +201,6 @@ class SplashScreen(wx.SplashScreen):
203 201 # ------------------------------------------------------------------
204 202  
205 203  
206   -
207 204 def parse_comand_line():
208 205 """
209 206 Handle command line arguments.
... ... @@ -262,7 +259,6 @@ def main():
262 259 Initialize InVesalius GUI
263 260 """
264 261 application = InVesalius(0)
265   - parse_comand_line()
266 262 application.MainLoop()
267 263  
268 264 if __name__ == '__main__':
... ...