Commit 738cfc0582a1efbd4e6f4d332d56879a4a3a45c8
1 parent
e74c7028
Exists in
master
and in
68 other branches
FIX: Measurements removal
Showing
1 changed file
with
0 additions
and
6 deletions
Show diff stats
invesalius/gui/data_notebook.py
@@ -955,7 +955,6 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): | @@ -955,7 +955,6 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): | ||
955 | """ | 955 | """ |
956 | Remove items selected. | 956 | Remove items selected. |
957 | """ | 957 | """ |
958 | - print "data_notebook: RemoveMeasurements" | ||
959 | # it is necessary to update internal dictionary | 958 | # it is necessary to update internal dictionary |
960 | # that maps bitmap given item index | 959 | # that maps bitmap given item index |
961 | selected_items = self.GetSelected() | 960 | selected_items = self.GetSelected() |
@@ -1098,10 +1097,7 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): | @@ -1098,10 +1097,7 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): | ||
1098 | 1097 | ||
1099 | 1098 | ||
1100 | def AddItem_(self, pubsub_evt): | 1099 | def AddItem_(self, pubsub_evt): |
1101 | - print "notebook: AddItem_" | ||
1102 | - print "self._list_index before:", self._list_index | ||
1103 | index = pubsub_evt.data[0] | 1100 | index = pubsub_evt.data[0] |
1104 | - print "index", index | ||
1105 | name = pubsub_evt.data[1] | 1101 | name = pubsub_evt.data[1] |
1106 | colour = pubsub_evt.data[2] | 1102 | colour = pubsub_evt.data[2] |
1107 | location = pubsub_evt.data[3] | 1103 | location = pubsub_evt.data[3] |
@@ -1124,7 +1120,6 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): | @@ -1124,7 +1120,6 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): | ||
1124 | 1120 | ||
1125 | def InsertNewItem(self, index=0, label="Measurement 1", colour=None, | 1121 | def InsertNewItem(self, index=0, label="Measurement 1", colour=None, |
1126 | type_="LINEAR", location="SURFACE", value="0 mm"): | 1122 | type_="LINEAR", location="SURFACE", value="0 mm"): |
1127 | - print "InsertNewItem" | ||
1128 | self.InsertStringItem(index, "") | 1123 | self.InsertStringItem(index, "") |
1129 | self.SetStringItem(index, 1, label, | 1124 | self.SetStringItem(index, 1, label, |
1130 | imageId = self._list_index[index]) | 1125 | imageId = self._list_index[index]) |
@@ -1136,7 +1131,6 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): | @@ -1136,7 +1131,6 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): | ||
1136 | 1131 | ||
1137 | def UpdateItemInfo(self, index=0, label="Measurement 1", colour=None, | 1132 | def UpdateItemInfo(self, index=0, label="Measurement 1", colour=None, |
1138 | type_="LINEAR", location="SURFACE", value="0 mm"): | 1133 | type_="LINEAR", location="SURFACE", value="0 mm"): |
1139 | - print "UpdateItemInfo" | ||
1140 | self.SetStringItem(index, 1, label, | 1134 | self.SetStringItem(index, 1, label, |
1141 | imageId = self._list_index[index]) | 1135 | imageId = self._list_index[index]) |
1142 | self.SetStringItem(index, 2, type_) | 1136 | self.SetStringItem(index, 2, type_) |