Commit 99884224f412b23801d607d8fadccc68468c6d38

Authored by Renan
1 parent ed365dc5
Exists in master

ENH: wx.CallAfter to send 'coil at target' state

- wx.CallAfter should avoid a possible threading freezing
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
invesalius/data/viewer_volume.py
... ... @@ -956,10 +956,10 @@ class Viewer(wx.Panel):
956 956  
957 957 if thrdist and thrcoordx and thrcoordy and thrcoordz:
958 958 self.dummy_coil_actor.GetProperty().SetDiffuseColor(vtk_colors.GetColor3d('Green'))
959   - #wx.CallAfter(Publisher.sendMessage, 'Coil at target', state=True)
  959 + wx.CallAfter(Publisher.sendMessage, 'Coil at target', state=True)
960 960 else:
961 961 self.dummy_coil_actor.GetProperty().SetDiffuseColor(vtk_colors.GetColor3d('DarkOrange'))
962   - #wx.CallAfter(Publisher.sendMessage, 'Coil at target', state=False)
  962 + wx.CallAfter(Publisher.sendMessage, 'Coil at target', state=False)
963 963  
964 964 self.arrow_actor_list = arrow_roll_x1, arrow_roll_x2, arrow_yaw_z1, arrow_yaw_z2, \
965 965 arrow_pitch_y1, arrow_pitch_y2
... ...