Fixing bug preventing enumerated datatype values to be saved
authorlaurent
Fri, 16 Dec 2011 22:50:11 +0100
changeset 609 768820a948e2
parent 608 b67536e93c11
child 610 430d029beed6
Fixing bug preventing enumerated datatype values to be saved
DataTypeEditor.py
--- a/DataTypeEditor.py	Fri Dec 16 22:48:24 2011 +0100
+++ b/DataTypeEditor.py	Fri Dec 16 22:50:11 2011 +0100
@@ -363,6 +363,7 @@
         self.EnumeratedValues = CustomEditableListBox(id=ID_DATATYPEEDITORENUMERATEDVALUES, 
               name='EnumeratedValues', parent=self.EnumeratedPanel, label=_("Values:"), pos=wx.Point(0, 0),
               size=wx.Size(0, 0), style=wx.gizmos.EL_ALLOW_NEW | wx.gizmos.EL_ALLOW_EDIT | wx.gizmos.EL_ALLOW_DELETE)
+        self.EnumeratedValues.GetListCtrl().Bind(wx.EVT_LIST_END_LABEL_EDIT, self.OnEnumeratedValuesChanged)
         for func in ["_OnAddButton", "_OnDelButton", "_OnUpButton", "_OnDownButton"]:
             setattr(self.EnumeratedValues, func, self.OnEnumeratedValuesChanged)