Disabling capability to define inout variable initial value according to IEC 61131-3 grammar
authorLaurent Bessard
Fri, 27 Jul 2012 15:44:42 +0200
changeset 731 4e30c1c0922d
parent 730 2c4914d941fd
child 732 7991eb6bcb5a
Disabling capability to define inout variable initial value according to IEC 61131-3 grammar
controls/VariablePanel.py
--- a/controls/VariablePanel.py	Thu Jul 26 11:44:19 2012 +0200
+++ b/controls/VariablePanel.py	Fri Jul 27 15:44:42 2012 +0200
@@ -172,7 +172,7 @@
                                 editor = wx.grid.GridCellTextEditor()
                                 renderer = wx.grid.GridCellStringRenderer()
                         elif colname == "Initial Value":
-                            if var_class != "External":
+                            if var_class not in ["External", "InOut"]:
                                 if self.Parent.Controler.IsEnumeratedType(var_type):
                                     editor = wx.grid.GridCellChoiceEditor()
                                     editor.SetParameters(",".join(self.Parent.Controler.GetEnumeratedDataValues(var_type)))