svgui/svgui.py
changeset 1739 ec153828ded2
parent 1737 a39c2918c015
child 1740 b789b695b5c6
--- a/svgui/svgui.py	Mon Aug 14 23:38:28 2017 +0300
+++ b/svgui/svgui.py	Tue Aug 15 12:17:51 2017 +0300
@@ -44,14 +44,18 @@
 class SVGUI(PythonFileCTNMixin):
 
     ConfNodeMethods = [
-        {"bitmap" : "ImportSVG",
-         "name" : _("Import SVG"),
-         "tooltip" : _("Import SVG"),
-         "method" : "_ImportSVG"},
-        {"bitmap" : "ImportSVG",  # should be something different
-         "name" : _("Inkscape"),
-         "tooltip" : _("Create HMI"),
-         "method" : "_StartInkscape"},
+        {
+            "bitmap":    "ImportSVG",
+            "name":    _("Import SVG"),
+            "tooltip": _("Import SVG"),
+            "method":   "_ImportSVG"
+        },
+        {
+            "bitmap":    "ImportSVG",  # should be something different
+            "name":    _("Inkscape"),
+            "tooltip": _("Create HMI"),
+            "method":   "_StartInkscape"
+        },
     ]
 
     def ConfNodePath(self):
@@ -110,7 +114,7 @@
 
         runtimefile_path = os.path.join(buildpath, "runtime_%s.py" % location_str)
         runtimefile = open(runtimefile_path, 'w')
-        runtimefile.write(svguiservercode % {"svgfile" : "gui.svg"})
+        runtimefile.write(svguiservercode % {"svgfile": "gui.svg"})
         runtimefile.write("""
 def _runtime_%(location)s_start():
     website.LoadHMI(%(svgui_class)s, %(jsmodules)s)
@@ -120,7 +124,7 @@
 
 """ % {"location": location_str,
        "svgui_class": "SVGUI_HMI",
-       "jsmodules" : str(jsmodules),
+       "jsmodules": str(jsmodules),
       })
         runtimefile.close()