Commit faf999615c96723c6c419beb99713c1547c11a9b

Authored by Paulo Henrique Junqueira Amorim
1 parent 22751b3f

ENH: Improvements in progress to generate surface

Showing 1 changed file with 3 additions and 4 deletions   Show diff stats
invesalius/data/surface.py
... ... @@ -195,7 +195,9 @@ class SurfaceManager():
195 195 pipeline_size += 1
196 196  
197 197 # Update progress value in GUI
198   -
  198 + UpdateProgress = vu.ShowProgress(pipeline_size)
  199 + UpdateProgress(0, _("Generating 3D surface..."))
  200 +
199 201 filename_img = tempfile.mktemp()
200 202  
201 203 writer = vtk.vtkXMLImageDataWriter()
... ... @@ -203,9 +205,6 @@ class SurfaceManager():
203 205 writer.SetInput(imagedata)
204 206 writer.Write()
205 207  
206   - #pipeline_size = 4
207   - UpdateProgress = vu.ShowProgress(pipeline_size)
208   -
209 208 language = ses.Session().language
210 209  
211 210 pipe_in, pipe_out = multiprocessing.Pipe()
... ...