Commit 9005b9a889eb3f900dd6822a09e98e6d759260c5

Authored by tatiana
1 parent 6f2555de

ENH: Degrees text representation

invesalius/data/measures.py
... ... @@ -125,7 +125,7 @@ class MeasurementManager(object):
125 125 if type == const.LINEAR:
126 126 value = u"%.2f mm"% m.value
127 127 else:
128   - value = u"%.2f˚"% m.value
  128 + value = u"%.2f°"% m.value
129 129  
130 130 msg = 'Update measurement info in GUI',
131 131 ps.Publisher().sendMessage(msg,
... ...
invesalius/gui/data_notebook.py
... ... @@ -1089,7 +1089,7 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin):
1089 1089 if m.type == const.LINEAR:
1090 1090 value = (u"%.2f mm") % m.value
1091 1091 else:
1092   - value = (u"%.2f˚") % m.value
  1092 + value = (u"%.2f°") % m.value
1093 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 1102 type_ = pubsub_evt.data[4]
1103 1103 value = pubsub_evt.data[5]
1104 1104  
  1105 +
1105 1106 if index not in self._list_index:
1106 1107 image = self.CreateColourBitmap(colour)
1107 1108 image_index = self.imagelist.Add(image)
... ...