Commit 99884224f412b23801d607d8fadccc68468c6d38
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,10 +956,10 @@ class Viewer(wx.Panel): | ||
956 | 956 | ||
957 | if thrdist and thrcoordx and thrcoordy and thrcoordz: | 957 | if thrdist and thrcoordx and thrcoordy and thrcoordz: |
958 | self.dummy_coil_actor.GetProperty().SetDiffuseColor(vtk_colors.GetColor3d('Green')) | 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 | else: | 960 | else: |
961 | self.dummy_coil_actor.GetProperty().SetDiffuseColor(vtk_colors.GetColor3d('DarkOrange')) | 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 | self.arrow_actor_list = arrow_roll_x1, arrow_roll_x2, arrow_yaw_z1, arrow_yaw_z2, \ | 964 | self.arrow_actor_list = arrow_roll_x1, arrow_roll_x2, arrow_yaw_z1, arrow_yaw_z2, \ |
965 | arrow_pitch_y1, arrow_pitch_y2 | 965 | arrow_pitch_y1, arrow_pitch_y2 |