--- a/Dialogs.py Mon Nov 19 10:02:35 2007 +0100
+++ b/Dialogs.py Tue Nov 27 12:57:39 2007 +0100
@@ -2336,7 +2336,9 @@
self.PouNames = []
self.Variables = []
self.StepNames = []
- if wx.VERSION >= (2, 5, 0):
+ if wx.VERSION >= (2, 8, 0):
+ self.Bind(wx.EVT_BUTTON, self.OnOK, id=self.GetSizer().GetItem(2).GetSizer().GetItem(1).GetSizer().GetAffirmativeButton().GetId())
+ elif wx.VERSION >= (2, 6, 0):
self.Bind(wx.EVT_BUTTON, self.OnOK, id=self.GetSizer().GetItem(3).GetSizer().GetAffirmativeButton().GetId())
else:
self.Bind(wx.EVT_BUTTON, self.OnOK, id=self.GetSizer().GetItem(3).GetSizer().GetChildren()[0].GetSizer().GetChildren()[0].GetWindow().GetId())