diff --git a/invesalius/gui/dicom_preview_panel.py b/invesalius/gui/dicom_preview_panel.py index 414e8cc..d2050ba 100755 --- a/invesalius/gui/dicom_preview_panel.py +++ b/invesalius/gui/dicom_preview_panel.py @@ -70,7 +70,7 @@ class DicomInfo(object): if size != self._size: self._size = size self.resized = True - + @property def preview(self): if self._preview: @@ -117,7 +117,7 @@ class DicomPaintPanel(wx.Panel): return image.Scale(*new_size) else: return image.Scale(*self.last_size) - + def SetImage(self, image): self.image = image @@ -156,7 +156,7 @@ class Preview(wx.Panel): self.title = wx.StaticText(self, -1, _("Image")) self.subtitle = wx.StaticText(self, -1, _("Image")) self.image_viewer = DicomPaintPanel(self) - + self.sizer = wx.BoxSizer(wx.VERTICAL) self.sizer.Add(self.title, 0, wx.ALIGN_CENTER_HORIZONTAL) @@ -773,7 +773,7 @@ class DicomPreview(wx.Panel): dicom_files = group.GetHandSortedList() n = 0 for dicom in dicom_files: - info = DicomInfo(n, dicom, + info = DicomInfo(n, dicom, _("Image %d") % (dicom.image.number), "%.2f" % (dicom.image.position[2])) self.files.append(info) @@ -794,7 +794,7 @@ class DicomPreview(wx.Panel): dicom_files = group.GetHandSortedList() n = 0 for dicom in dicom_files: - info = DicomInfo(n, dicom, + info = DicomInfo(n, dicom, _("Image %d") % (dicom.image.number), "%.2f" % (dicom.image.position[2]), ) diff --git a/invesalius/gui/frame.py b/invesalius/gui/frame.py index 9976d43..a7517db 100755 --- a/invesalius/gui/frame.py +++ b/invesalius/gui/frame.py @@ -112,11 +112,11 @@ class Frame(wx.Frame): self.Bind(wx.EVT_MENU, self.OnMenuClick) self.Bind(wx.EVT_CLOSE, self.CloseWindow) #self.Bind(wx.EVT_CLOSE, self.OnExit) - + def CloseWindow(self, evt): ps.Publisher().sendMessage("Stop Config Recording") self.Destroy() - + def __init_aui(self): # Tell aui_manager to manage this frame @@ -211,6 +211,7 @@ class Frame(wx.Frame): aui_manager.GetPane("Data").Show(1) aui_manager.GetPane("Tasks").Show(1) aui_manager.Update() + ps.Publisher().sendMessage('End busy cursor') def HideContentPanel(self, pubsub_evt): aui_manager = self.aui_manager -- libgit2 0.21.2