diff --git a/invesalius/data/surface.py b/invesalius/data/surface.py index 314dffa..632fc72 100644 --- a/invesalius/data/surface.py +++ b/invesalius/data/surface.py @@ -171,7 +171,7 @@ class SurfaceManager(): imagedata, colour, [min_value, max_value], edited_points = pubsub_evt.data quality=_('Optimal *') mode = 'CONTOUR' # 'GRAYSCALE' - + ps.Publisher().sendMessage('Begin busy cursor') imagedata_tmp = None if (edited_points): imagedata_tmp = vtk.vtkImageData() @@ -294,7 +294,7 @@ class SurfaceManager(): ps.Publisher().sendMessage('Update status text in GUI', "Surface created.") - + # The following lines have to be here, otherwise all volumes disappear measured_polydata = vtk.vtkMassProperties() measured_polydata.SetInput(polydata) @@ -309,7 +309,9 @@ class SurfaceManager(): #Destroy Copy original imagedata if(imagedata_tmp): del imagedata_tmp - + + ps.Publisher().sendMessage('End busy cursor') + def RemoveActor(self, index): """ Remove actor, according to given actor index. diff --git a/invesalius/gui/frame.py b/invesalius/gui/frame.py index a7517db..5cb5b21 100755 --- a/invesalius/gui/frame.py +++ b/invesalius/gui/frame.py @@ -440,7 +440,8 @@ class StatusBar(wx.StatusBar): self.SetStatusText("",0) if sys.platform == 'win32': try: - wx.SafeYield() + #wx.SafeYield() + wx.Yield() #TODO: temporary fix necessary in the Windows XP 64 Bits #BUG in wxWidgets http://trac.wxwidgets.org/ticket/10896 except(wx._core.PyAssertionError): -- libgit2 0.21.2