# HG changeset patch # User Laurent Bessard # Date 1343396682 -7200 # Node ID 4e30c1c0922d43e9c1439107f0ee29b42897b71f # Parent 2c4914d941fdc6d99a98fe4dab5b815ea8fb846d Disabling capability to define inout variable initial value according to IEC 61131-3 grammar diff -r 2c4914d941fd -r 4e30c1c0922d 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)))