Commit 9005b9a889eb3f900dd6822a09e98e6d759260c5
1 parent
6f2555de
Exists in
master
and in
6 other branches
ENH: Degrees text representation
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
invesalius/data/measures.py
@@ -125,7 +125,7 @@ class MeasurementManager(object): | @@ -125,7 +125,7 @@ class MeasurementManager(object): | ||
125 | if type == const.LINEAR: | 125 | if type == const.LINEAR: |
126 | value = u"%.2f mm"% m.value | 126 | value = u"%.2f mm"% m.value |
127 | else: | 127 | else: |
128 | - value = u"%.2f˚"% m.value | 128 | + value = u"%.2f°"% m.value |
129 | 129 | ||
130 | msg = 'Update measurement info in GUI', | 130 | msg = 'Update measurement info in GUI', |
131 | ps.Publisher().sendMessage(msg, | 131 | ps.Publisher().sendMessage(msg, |
invesalius/gui/data_notebook.py
@@ -1089,7 +1089,7 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): | @@ -1089,7 +1089,7 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): | ||
1089 | if m.type == const.LINEAR: | 1089 | if m.type == const.LINEAR: |
1090 | value = (u"%.2f mm") % m.value | 1090 | value = (u"%.2f mm") % m.value |
1091 | else: | 1091 | else: |
1092 | - value = (u"%.2f˚") % m.value | 1092 | + value = (u"%.2f°") % m.value |
1093 | self.InsertNewItem(m.index, m.name, colour, type, location, value) | 1093 | self.InsertNewItem(m.index, m.name, colour, type, location, value) |
1094 | 1094 | ||
1095 | 1095 | ||
@@ -1102,6 +1102,7 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): | @@ -1102,6 +1102,7 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): | ||
1102 | type_ = pubsub_evt.data[4] | 1102 | type_ = pubsub_evt.data[4] |
1103 | value = pubsub_evt.data[5] | 1103 | value = pubsub_evt.data[5] |
1104 | 1104 | ||
1105 | + | ||
1105 | if index not in self._list_index: | 1106 | if index not in self._list_index: |
1106 | image = self.CreateColourBitmap(colour) | 1107 | image = self.CreateColourBitmap(colour) |
1107 | image_index = self.imagelist.Add(image) | 1108 | image_index = self.imagelist.Add(image) |