Bug on Step Name Dialog with wx 2.8 fixed
authorlbessard
Tue, 27 Nov 2007 12:57:39 +0100
changeset 123 62f93b8df816
parent 122 e6faee0c271b
child 124 635d0817508c
Bug on Step Name Dialog with wx 2.8 fixed
Dialogs.py
--- 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())