equal
deleted
inserted
replaced
56 hmi_frames[node._attrs["name"].value] = node._attrs["class"].value |
56 hmi_frames[node._attrs["name"].value] = node._attrs["class"].value |
57 |
57 |
58 hmipyfile_path=os.path.join(self._getBuildPath(), "hmi.py") |
58 hmipyfile_path=os.path.join(self._getBuildPath(), "hmi.py") |
59 if wx.Platform == '__WXMSW__': |
59 if wx.Platform == '__WXMSW__': |
60 wxgfile_path = "\"%s\""%wxgfile_path |
60 wxgfile_path = "\"%s\""%wxgfile_path |
61 hmipyfile_path = "\"%s\""%hmipyfile_path |
61 wxghmipyfile_path = "\"%s\""%hmipyfile_path |
62 self.launch_wxglade(['-o', hmipyfile_path, '-g', 'python', wxgfile_path], wait=True) |
62 else: |
|
63 wxghmipyfile_path = hmipyfile_path |
|
64 self.launch_wxglade(['-o', wxghmipyfile_path, '-g', 'python', wxgfile_path], wait=True) |
63 |
65 |
64 hmipyfile = open(hmipyfile_path, 'r') |
66 hmipyfile = open(hmipyfile_path, 'r') |
65 runtimefile.write(hmipyfile.read()) |
67 runtimefile.write(hmipyfile.read()) |
66 hmipyfile.close() |
68 hmipyfile.close() |
67 |
69 |