Fix bug with dialogs inherited from TextEntryDialog
authorLaurent Bessard
Mon, 30 Jul 2012 16:06:21 +0200
changeset 732 7991eb6bcb5a
parent 731 4e30c1c0922d
child 733 c4424d8eebb0
Fix bug with dialogs inherited from TextEntryDialog
dialogs/ForceVariableDialog.py
dialogs/PouNameDialog.py
dialogs/SFCStepNameDialog.py
--- a/dialogs/ForceVariableDialog.py	Fri Jul 27 15:44:42 2012 +0200
+++ b/dialogs/ForceVariableDialog.py	Mon Jul 30 16:06:21 2012 +0200
@@ -171,6 +171,7 @@
             dialog.Destroy()
         else:
             self.EndModal(wx.ID_OK)
+        event.Skip()
 
     def GetValue(self):
         return GetTypeValue[self.IEC_Type](wx.TextEntryDialog.GetValue(self))
--- a/dialogs/PouNameDialog.py	Fri Jul 27 15:44:42 2012 +0200
+++ b/dialogs/PouNameDialog.py	Mon Jul 30 16:06:21 2012 +0200
@@ -55,6 +55,7 @@
             dialog.Destroy()
         else:
             self.EndModal(wx.ID_OK)
+        event.Skip()
 
     def SetPouNames(self, pou_names):
         self.PouNames = [pou_name.upper() for pou_name in pou_names]
--- a/dialogs/SFCStepNameDialog.py	Fri Jul 27 15:44:42 2012 +0200
+++ b/dialogs/SFCStepNameDialog.py	Mon Jul 30 16:06:21 2012 +0200
@@ -61,6 +61,7 @@
             dialog.Destroy()
         else:
             self.EndModal(wx.ID_OK)
+        event.Skip()
 
     def SetPouNames(self, pou_names):
         self.PouNames = [pou_name.upper() for pou_name in pou_names]