controls/PouInstanceVariablesPanel.py
changeset 701 25fbbb005a30
parent 692 e00ce7077bfc
child 714 131ea7f237b9
equal deleted inserted replaced
700:cf3db1775105 701:25fbbb005a30
   130     def RefreshView(self):
   130     def RefreshView(self):
   131         self.VariablesList.DeleteAllItems()
   131         self.VariablesList.DeleteAllItems()
   132         self.InstanceChoice.Clear()
   132         self.InstanceChoice.Clear()
   133         self.InstanceChoice.SetValue("")
   133         self.InstanceChoice.SetValue("")
   134         
   134         
   135         if self.PouTagName is not None:
   135         if self.Controller is not None and self.PouTagName is not None:
   136             self.PouInfos = self.Controller.GetPouVariables(self.PouTagName, self.Debug)
   136             self.PouInfos = self.Controller.GetPouVariables(self.PouTagName, self.Debug)
   137         else:
   137         else:
   138             self.PouInfos = None
   138             self.PouInfos = None
   139         if self.PouInfos is not None:
   139         if self.PouInfos is not None:
   140             root = self.VariablesList.AddRoot("")
   140             root = self.VariablesList.AddRoot("")