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 | 24 | |
| 25 | 25 | import numpy |
| 26 | 26 | import wx |
| 27 | -import wx.lib.pubsub as ps | |
| 27 | +from wx.lib.pubsub import pub as Publisher | |
| 28 | 28 | |
| 29 | 29 | import gui.dialogs as dialog |
| 30 | 30 | import constants as const |
| ... | ... | @@ -174,7 +174,7 @@ class CLUTRaycastingWidget(wx.Panel): |
| 174 | 174 | print "Salvando" |
| 175 | 175 | filename = dialog.ShowSavePresetDialog() |
| 176 | 176 | if filename: |
| 177 | - ps.Publisher().sendMessage('Save raycasting preset', filename) | |
| 177 | + Publisher.sendMessage('Save raycasting preset', filename) | |
| 178 | 178 | point = self._has_clicked_in_a_point((x, y)) |
| 179 | 179 | # A point has been selected. It can be dragged. |
| 180 | 180 | if point: | ... | ... |