Commit 4191a83774b5d4b6c4901e736f268b714df7a982
1 parent
6d85d994
Exists in
master
and in
67 other branches
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,7 +166,6 @@ class SplashScreen(wx.SplashScreen): | ||
166 | wx.Yield() | 166 | wx.Yield() |
167 | wx.CallLater(200,self.Startup) | 167 | wx.CallLater(200,self.Startup) |
168 | 168 | ||
169 | - | ||
170 | def Startup(self): | 169 | def Startup(self): |
171 | # Importing takes sometime, therefore it will be done | 170 | # Importing takes sometime, therefore it will be done |
172 | # while splash is being shown | 171 | # while splash is being shown |
@@ -178,8 +177,7 @@ class SplashScreen(wx.SplashScreen): | @@ -178,8 +177,7 @@ class SplashScreen(wx.SplashScreen): | ||
178 | self.control = Controller(self.main) | 177 | self.control = Controller(self.main) |
179 | 178 | ||
180 | self.fc = wx.FutureCall(1, self.ShowMain) | 179 | self.fc = wx.FutureCall(1, self.ShowMain) |
181 | - | ||
182 | - | 180 | + parse_comand_line() |
183 | 181 | ||
184 | def OnClose(self, evt): | 182 | def OnClose(self, evt): |
185 | # Make sure the default handler runs too so this window gets | 183 | # Make sure the default handler runs too so this window gets |
@@ -203,7 +201,6 @@ class SplashScreen(wx.SplashScreen): | @@ -203,7 +201,6 @@ class SplashScreen(wx.SplashScreen): | ||
203 | # ------------------------------------------------------------------ | 201 | # ------------------------------------------------------------------ |
204 | 202 | ||
205 | 203 | ||
206 | - | ||
207 | def parse_comand_line(): | 204 | def parse_comand_line(): |
208 | """ | 205 | """ |
209 | Handle command line arguments. | 206 | Handle command line arguments. |
@@ -262,7 +259,6 @@ def main(): | @@ -262,7 +259,6 @@ def main(): | ||
262 | Initialize InVesalius GUI | 259 | Initialize InVesalius GUI |
263 | """ | 260 | """ |
264 | application = InVesalius(0) | 261 | application = InVesalius(0) |
265 | - parse_comand_line() | ||
266 | application.MainLoop() | 262 | application.MainLoop() |
267 | 263 | ||
268 | if __name__ == '__main__': | 264 | if __name__ == '__main__': |