--- a/controls/PouInstanceVariablesPanel.py Mon Jun 10 01:15:39 2013 +0200
+++ b/controls/PouInstanceVariablesPanel.py Mon Jun 10 09:54:24 2013 +0200
@@ -141,8 +141,6 @@
self.VariablesList.DeleteAllItems()
- self.InstanceChoice.Clear()
- self.InstanceChoice.SetValue("")
if self.Controller is not None and self.PouTagName is not None:
self.PouInfos = self.Controller.GetPouVariables(self.PouTagName, self.Debug)
@@ -202,13 +200,14 @@
self.VariablesList.SetItemImage(item, self.ParentWindow.GetTreeImage(var_infos["class"]))
self.VariablesList.SetPyData(item, var_infos)
- self.RefreshInstanceChoice()
+ self.RefreshInstanceChoice() def RefreshInstanceChoice(self):
+ self.InstanceChoice.Clear() + self.InstanceChoice.SetValue("") if self.Controller is not None and self.PouInfos is not None:
instances = self.Controller.SearchPouInstances(self.PouTagName, self.Debug)
for instance in instances: