wxglade_hmi/wxglade_hmi.py
changeset 1878 fb73a6b6622d
parent 1832 0f1081928d65
child 1881 091005ec69c4
--- a/wxglade_hmi/wxglade_hmi.py	Thu Oct 19 10:57:35 2017 +0300
+++ b/wxglade_hmi/wxglade_hmi.py	Thu Oct 19 11:03:03 2017 +0300
@@ -124,10 +124,9 @@
         declare_hmi = "\n".join(["%(name)s = None\n" % x +
                                  "\n".join(["%(class)s.%(h)s = %(h)s" %
                                             dict(x, h=h) for h in x['handlers']])
-                                for x in hmi_frames])
+                                 for x in hmi_frames])
         global_hmi = ("global %s\n" % ",".join(
-                         [x["name"] for x in hmi_frames])
-                      if len(hmi_frames) > 0 else "")
+            [x["name"] for x in hmi_frames]) if len(hmi_frames) > 0 else "")
         init_hmi = "\n".join(["""\
 def OnCloseFrame(evt):
     wx.MessageBox(_("Please stop PLC to close"))
@@ -138,7 +137,7 @@
 """ % x for x in hmi_frames])
         cleanup_hmi = "\n".join(
             ["if %(name)s is not None: %(name)s.Destroy()" % x
-                for x in hmi_frames])
+             for x in hmi_frames])
 
         self.PreSectionsTexts = {
             "globals": define_hmi,