Commit f8a2de3a04b61e92d42240b23ed818b3c9a6305f

Authored by Paulo Henrique Junqueira Amorim
1 parent a9668a40

ENH: Busy cursor in the importation

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
invesalius/control.py
... ... @@ -225,6 +225,7 @@ class Controller():
225 225 reader = dcm.ProgressDicomReader()
226 226 reader.SetWindowEvent(self.frame)
227 227 reader.SetDirectoryPath(path)
  228 + ps.Publisher().sendMessage('End busy cursor')
228 229  
229 230 def Progress(self, evt):
230 231 data = evt.data
... ... @@ -239,6 +240,7 @@ class Controller():
239 240 if not(self.progress_dialog.Update(data[0],message)):
240 241 self.progress_dialog.Close()
241 242 self.progress_dialog = None
  243 + ps.Publisher().sendMessage('Begin busy cursor')
242 244 else:
243 245 #Is None if user canceled the load
244 246 self.progress_dialog.Close()
... ...