controls/PouInstanceVariablesPanel.py
changeset 900 3e78925125e1
parent 898 6b2958f04f30
child 915 8dc28b21bdac
equal deleted inserted replaced
899:64aa66d481c5 900:3e78925125e1
   104     
   104     
   105         self.RefreshView()
   105         self.RefreshView()
   106     
   106     
   107     def SetPouType(self, tagname, pou_instance=None):
   107     def SetPouType(self, tagname, pou_instance=None):
   108         self.PouTagName = tagname
   108         self.PouTagName = tagname
       
   109         if self.PouTagName == "Project":
       
   110             config_name = self.Controller.GetProjectMainConfigurationName()
       
   111             if config_name is not None:
       
   112                 self.PouTagName = self.Controller.ComputeConfigurationName(config_name)
   109         if pou_instance is not None:
   113         if pou_instance is not None:
   110             self.PouInstance = pou_instance
   114             self.PouInstance = pou_instance
   111         
   115         
   112         self.RefreshView()
   116         self.RefreshView()
   113     
   117