1017 if os.path.exists(pyfile): |
1017 if os.path.exists(pyfile): |
1018 res += (("runtime.py", file(pyfile,"rb")),) |
1018 res += (("runtime.py", file(pyfile,"rb")),) |
1019 wxgfile=self._getWXGLADEpath() |
1019 wxgfile=self._getWXGLADEpath() |
1020 if os.path.exists(wxgfile): |
1020 if os.path.exists(wxgfile): |
1021 hmipyfile=os.path.join(self._getBuildPath(),"hmi.py") |
1021 hmipyfile=os.path.join(self._getBuildPath(),"hmi.py") |
1022 self.launch_wxglade(['-o', hmipyfile, '-g','python', wxgfile], wait=True) |
1022 if wx.Platform == '__WXMSW__': |
|
1023 wxgfile = "\"%s\""%wxgfile |
|
1024 hmipyfile = "\"%s\""%hmipyfile |
|
1025 self.launch_wxglade(['-o', hmipyfile, '-g', 'python', wxgfile], wait=True) |
1023 res += (("hmi.py", file(hmipyfile,"rb")),) |
1026 res += (("hmi.py", file(hmipyfile,"rb")),) |
1024 |
1027 |
1025 return res |
1028 return res |
1026 |
1029 |
1027 |
1030 |
1322 <style>wxDEFAULT_FRAME_STYLE</style> |
1325 <style>wxDEFAULT_FRAME_STYLE</style> |
1323 <title>frame_1</title> |
1326 <title>frame_1</title> |
1324 </object> |
1327 </object> |
1325 </application> |
1328 </application> |
1326 """) |
1329 """) |
|
1330 if wx.Platform == '__WXMSW__': |
|
1331 wxg_filename = "\"%s\""%wxg_filename |
1327 self.launch_wxglade([wxg_filename]) |
1332 self.launch_wxglade([wxg_filename]) |
1328 |
1333 |
1329 def _EditPLC(self): |
1334 def _EditPLC(self): |
1330 if self.PLCEditor is None: |
1335 if self.PLCEditor is None: |
1331 self.RefreshPluginsBlockLists() |
1336 self.RefreshPluginsBlockLists() |