PLCOpenEditor.py
changeset 512 07a7989f58e4
parent 503 52689bda4686
child 513 fb787f6cbe33
--- a/PLCOpenEditor.py	Wed Mar 30 17:59:54 2011 +0200
+++ b/PLCOpenEditor.py	Thu Mar 31 10:53:13 2011 +0200
@@ -1249,7 +1249,9 @@
     def GenerateTypesTreeBranch(self, root, infos, topology=False):
         to_delete = []
         item_name = infos["name"]
-        self.TypesTree.SetItemText(root, _(item_name))
+        if infos["type"] in ITEMS_UNEDITABLE:
+            item_name = _(item_name)
+        self.TypesTree.SetItemText(root, item_name)
         self.TypesTree.SetPyData(root, infos["type"])
         if infos.get("tagname", None) in self.Errors:
             self.TypesTree.SetItemBackgroundColour(root, wx.Colour(255, 255, 0))