controls/VariablePanel.py
changeset 1140 80a91fc91595
parent 1128 86527a6f06fb
child 1171 a506e4de8f84
equal deleted inserted replaced
1139:f9cf74053b7d 1140:80a91fc91595
   296                         message = _("Can't set an initial value to a function block instance")
   296                         message = _("Can't set an initial value to a function block instance")
   297                     else:
   297                     else:
   298                         self.ParentWindow.Table.SetValue(row, col, values[0])
   298                         self.ParentWindow.Table.SetValue(row, col, values[0])
   299                         self.ParentWindow.Table.ResetView(self.ParentWindow.VariablesGrid)
   299                         self.ParentWindow.Table.ResetView(self.ParentWindow.VariablesGrid)
   300                         self.ParentWindow.SaveValues()
   300                         self.ParentWindow.SaveValues()
   301             elif (element_type not in ["config", "resource"] and values[1] == "Global" and self.ParentWindow.Filter in ["All", "Interface", "External"] or
   301             elif (element_type not in ["config", "resource", "function"] and values[1] == "Global" and 
       
   302                   self.ParentWindow.Filter in ["All", "Interface", "External"] or
   302                   element_type in ["config", "resource", "program"] and values[1] == "location"):
   303                   element_type in ["config", "resource", "program"] and values[1] == "location"):
   303                 if values[1] == "location":
   304                 if values[1] == "location":
   304                     var_name = values[3]
   305                     var_name = values[3]
   305                 else:
   306                 else:
   306                     var_name = values[0]
   307                     var_name = values[0]