diff -r ec153828ded2 -r b789b695b5c6 wxglade_hmi/wxglade_hmi.py --- a/wxglade_hmi/wxglade_hmi.py Tue Aug 15 12:17:51 2017 +0300 +++ b/wxglade_hmi/wxglade_hmi.py Tue Aug 15 15:50:30 2017 +0300 @@ -77,7 +77,7 @@ glade = os.path.join(path, 'wxglade.py') if wx.Platform == '__WXMSW__': glade = "\"%s\"" % glade - mode = {False:os.P_NOWAIT, True:os.P_WAIT}[wait] + mode = {False: os.P_NOWAIT, True: os.P_WAIT}[wait] os.spawnv(mode, sys.executable, ["\"%s\"" % sys.executable] + [glade] + options) def OnCTNSave(self, from_project_path=None): @@ -122,7 +122,7 @@ 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']]) + dict(x, h=h) for h in x['handlers']]) for x in hmi_frames]) global_hmi = ("global %s\n" % ",".join( [x["name"] for x in hmi_frames]) @@ -140,13 +140,13 @@ for x in hmi_frames]) self.PreSectionsTexts = { - "globals":define_hmi, - "start":global_hmi, - "stop":global_hmi + cleanup_hmi + "globals": define_hmi, + "start": global_hmi, + "stop": global_hmi + cleanup_hmi } self.PostSectionsTexts = { - "globals":declare_hmi, - "start":init_hmi, + "globals": declare_hmi, + "start": init_hmi, } return PythonFileCTNMixin.CTNGenerate_C(self, buildpath, locations) @@ -164,7 +164,7 @@ if open_wxglade: if not os.path.exists(wxg_filename): hmi_name = self.BaseParams.getName() - open(wxg_filename,"w").write(""" + open(wxg_filename, "w").write("""