controls/PouInstanceVariablesPanel.py
changeset 1222 775b48a2be3b
parent 1217 b64dcc1a011f
child 1233 5e6d0969bb5d
--- a/controls/PouInstanceVariablesPanel.py	Wed Jun 05 23:06:01 2013 +0200
+++ b/controls/PouInstanceVariablesPanel.py	Wed Jun 05 23:09:52 2013 +0200
@@ -113,7 +113,7 @@
         self.RefreshView()
     
     def SetPouType(self, tagname, pou_instance=None):
-        if  self.Controller is not None:
+        if self.Controller is not None:
             self.PouTagName = tagname
             if self.PouTagName == "Project":
                 config_name = self.Controller.GetProjectMainConfigurationName()
@@ -134,6 +134,7 @@
         self.RefreshView()
     
     def RefreshView(self):
+        self.Freeze()
         self.VariablesList.DeleteAllItems()
         self.InstanceChoice.Clear()
         self.InstanceChoice.SetValue("")
@@ -212,6 +213,8 @@
         
         self.RefreshButtons()
         
+        self.Thaw()
+        
     def RefreshButtons(self):
         enabled = self.InstanceChoice.GetSelection() != -1
         self.ParentButton.Enable(enabled and self.PouInfos["class"] != ITEM_CONFIGURATION)