From 9005b9a889eb3f900dd6822a09e98e6d759260c5 Mon Sep 17 00:00:00 2001 From: tatiana Date: Mon, 8 Mar 2010 11:40:14 +0000 Subject: [PATCH] ENH: Degrees text representation --- invesalius/data/measures.py | 2 +- invesalius/gui/data_notebook.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/invesalius/data/measures.py b/invesalius/data/measures.py index 7acda97..62b849e 100644 --- a/invesalius/data/measures.py +++ b/invesalius/data/measures.py @@ -125,7 +125,7 @@ class MeasurementManager(object): if type == const.LINEAR: value = u"%.2f mm"% m.value else: - value = u"%.2f˚"% m.value + value = u"%.2f°"% m.value msg = 'Update measurement info in GUI', ps.Publisher().sendMessage(msg, diff --git a/invesalius/gui/data_notebook.py b/invesalius/gui/data_notebook.py index 85f7aff..b01a8bb 100644 --- a/invesalius/gui/data_notebook.py +++ b/invesalius/gui/data_notebook.py @@ -1089,7 +1089,7 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): if m.type == const.LINEAR: value = (u"%.2f mm") % m.value else: - value = (u"%.2f˚") % m.value + value = (u"%.2f°") % m.value self.InsertNewItem(m.index, m.name, colour, type, location, value) @@ -1102,6 +1102,7 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): type_ = pubsub_evt.data[4] value = pubsub_evt.data[5] + if index not in self._list_index: image = self.CreateColourBitmap(colour) image_index = self.imagelist.Add(image) -- libgit2 0.21.2