equal
deleted
inserted
replaced
140 """ |
140 """ |
141 Called to refresh names in name list box |
141 Called to refresh names in name list box |
142 """ |
142 """ |
143 # Get variable class to select POU variable applicable |
143 # Get variable class to select POU variable applicable |
144 var_class = VARIABLE_CLASSES_DICT_REVERSE[ |
144 var_class = VARIABLE_CLASSES_DICT_REVERSE[ |
145 self.Class.GetStringSelection()] |
145 self.Class.GetStringSelection()] |
146 |
146 |
147 # Refresh names in name list box by selecting variables in POU variables |
147 # Refresh names in name list box by selecting variables in POU variables |
148 # list that can be applied to variable class |
148 # list that can be applied to variable class |
149 self.VariableName.Clear() |
149 self.VariableName.Clear() |
150 for name, (var_type, _value_type) in self.VariableList.iteritems(): |
150 for name, (var_type, _value_type) in self.VariableList.iteritems(): |
203 @return: {parameter_name: parameter_value,...} |
203 @return: {parameter_name: parameter_value,...} |
204 """ |
204 """ |
205 expression = self.Expression.GetValue() |
205 expression = self.Expression.GetValue() |
206 values = { |
206 values = { |
207 "class": VARIABLE_CLASSES_DICT_REVERSE[ |
207 "class": VARIABLE_CLASSES_DICT_REVERSE[ |
208 self.Class.GetStringSelection()], |
208 self.Class.GetStringSelection()], |
209 "expression": expression, |
209 "expression": expression, |
210 "var_type": self.VariableList.get(expression, (None, None))[1], |
210 "var_type": self.VariableList.get(expression, (None, None))[1], |
211 "executionOrder": self.ExecutionOrder.GetValue()} |
211 "executionOrder": self.ExecutionOrder.GetValue()} |
212 values["width"], values["height"] = self.Element.GetSize() |
212 values["width"], values["height"] = self.Element.GetSize() |
213 return values |
213 return values |