--- a/dialogs/ArrayTypeDialog.py Thu Feb 02 01:08:57 2012 +0100
+++ b/dialogs/ArrayTypeDialog.py Thu Feb 02 16:12:26 2012 +0100
@@ -84,9 +84,7 @@
self.Dimensions = CustomEditableListBox(id=ID_ARRAYTYPEDIALOGDIMENSIONS,
name='ArrayDimensions', parent=self, label=_("Dimensions:"), pos=wx.Point(0, 0),
size=wx.Size(0, 24), style=wx.gizmos.EL_ALLOW_NEW | wx.gizmos.EL_ALLOW_EDIT | wx.gizmos.EL_ALLOW_DELETE)
- list_ctrl = self.Dimensions.GetListCtrl()
- list_ctrl.Bind(wx.EVT_LIST_END_LABEL_EDIT, self.OnDimensionsChanged)
- for func in ["_OnAddButton", "_OnDelButton", "_OnUpButton", "_OnDownButton"]:
+ for func in ["_OnLabelEndEdit", "_OnAddButton", "_OnDelButton", "_OnUpButton", "_OnDownButton"]:
setattr(self.Dimensions, func, self.OnDimensionsChanged)
self.ButtonSizer = self.CreateButtonSizer(wx.OK|wx.CANCEL|wx.CENTRE)