controls/SearchResultPanel.py
changeset 2551 245644bfcd24
parent 2529 efb532295607
child 2737 38afed869ff6
--- a/controls/SearchResultPanel.py	Fri Mar 22 13:26:31 2019 +0100
+++ b/controls/SearchResultPanel.py	Fri Mar 22 13:45:19 2019 +0100
@@ -131,8 +131,7 @@
                 ("ACTION",         "action_block"),
                 ("IL",             "IL"),
                 ("ST",             "ST"),
-                ("FILE",           ITEM_CONFNODE),
-                ]:
+                ("FILE",           ITEM_CONFNODE)]:
             self.TreeImageDict[itemtype] = self.TreeImageList.Add(GetBitmap(imgname))
 
         for itemtype in ["function", "functionBlock", "program",
@@ -205,10 +204,10 @@
                 children = element_infos.setdefault("children", [])
                 for infos, start, end, text in results:
                     if len(words) == 1:  # CTN match
-                        child_name = {"body":str(start[0])+":",
-                                      "var_inout":_("Variable:")}[infos[1]]
-                        child_type = {"body":ITEM_CONFNODE,
-                                      "var_inout":"var_inout"}[infos[1]]
+                        child_name = {"body": str(start[0])+":",
+                                      "var_inout": _("Variable:")}[infos[1]]
+                        child_type = {"body": ITEM_CONFNODE,
+                                      "var_inout": "var_inout"}[infos[1]]
                     elif infos[1] == "name" or element_type == ITEM_DATATYPE:
                         child_name = GenerateName(infos[1:])
                         child_type = element_type