Commit dc90d34794bbdd2adeacad8f807c84b90a95f32d
1 parent
355784cc
Exists in
master
and in
67 other branches
FIX: Saving raycasting preset again
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
invesalius/gui/widgets/clut_raycasting.py
@@ -24,7 +24,7 @@ import sys | @@ -24,7 +24,7 @@ import sys | ||
24 | 24 | ||
25 | import numpy | 25 | import numpy |
26 | import wx | 26 | import wx |
27 | -import wx.lib.pubsub as ps | 27 | +from wx.lib.pubsub import pub as Publisher |
28 | 28 | ||
29 | import gui.dialogs as dialog | 29 | import gui.dialogs as dialog |
30 | import constants as const | 30 | import constants as const |
@@ -174,7 +174,7 @@ class CLUTRaycastingWidget(wx.Panel): | @@ -174,7 +174,7 @@ class CLUTRaycastingWidget(wx.Panel): | ||
174 | print "Salvando" | 174 | print "Salvando" |
175 | filename = dialog.ShowSavePresetDialog() | 175 | filename = dialog.ShowSavePresetDialog() |
176 | if filename: | 176 | if filename: |
177 | - ps.Publisher().sendMessage('Save raycasting preset', filename) | 177 | + Publisher.sendMessage('Save raycasting preset', filename) |
178 | point = self._has_clicked_in_a_point((x, y)) | 178 | point = self._has_clicked_in_a_point((x, y)) |
179 | # A point has been selected. It can be dragged. | 179 | # A point has been selected. It can be dragged. |
180 | if point: | 180 | if point: |