Commit 28147eb5a38b858735f19250add096dc0e24c88f
1 parent
cd7f4721
Exists in
master
and in
68 other branches
ENH: Add message with text
Showing
1 changed file
with
3 additions
and
5 deletions
Show diff stats
invesalius/gui/dialogs.py
... | ... | @@ -82,12 +82,10 @@ class ProgressDialog(object): |
82 | 82 | def Cancel(self, evt): |
83 | 83 | ps.Publisher().sendMessage("Cancel DICOM load") |
84 | 84 | |
85 | - def Update(self, value): | |
85 | + def Update(self, value): | |
86 | + message = "Loading file %d of %d"%(value,self.maximum) | |
86 | 87 | if(value != self.maximum): |
87 | - try: | |
88 | - self.dlg.Update(value) | |
89 | - except(wx._core.PyAssertionError): | |
90 | - pass | |
88 | + self.dlg.Update(value,message) | |
91 | 89 | return True |
92 | 90 | else: |
93 | 91 | return False | ... | ... |