equal
deleted
inserted
replaced
1221 self.CompareLocalAndRemotePLC() |
1221 self.CompareLocalAndRemotePLC() |
1222 return True |
1222 return True |
1223 |
1223 |
1224 def ShowError(self, logger, from_location, to_location): |
1224 def ShowError(self, logger, from_location, to_location): |
1225 chunk_infos = self.GetChunkInfos(from_location, to_location) |
1225 chunk_infos = self.GetChunkInfos(from_location, to_location) |
1226 self._EditPLC(logger) |
1226 self._EditPLC() |
1227 for infos, (start_row, start_col) in chunk_infos: |
1227 for infos, (start_row, start_col) in chunk_infos: |
1228 start = (from_location[0] - start_row, from_location[1] - start_col) |
1228 start = (from_location[0] - start_row, from_location[1] - start_col) |
1229 end = (to_location[0] - start_row, to_location[1] - start_col) |
1229 end = (to_location[0] - start_row, to_location[1] - start_col) |
1230 self.PLCEditor.ShowError(infos, start, end) |
1230 self.PLCEditor.ShowError(infos, start, end) |
1231 |
1231 |
1260 def _onclose(): |
1260 def _onclose(): |
1261 self.PLCEditor = None |
1261 self.PLCEditor = None |
1262 def _onsave(): |
1262 def _onsave(): |
1263 self.SaveProject() |
1263 self.SaveProject() |
1264 self.PLCEditor = PLCOpenEditor(self.AppFrame, self) |
1264 self.PLCEditor = PLCOpenEditor(self.AppFrame, self) |
1265 self.PLCEditor.RefreshProjectTree() |
|
1266 self.PLCEditor.RefreshFileMenu() |
|
1267 self.PLCEditor.RefreshEditMenu() |
|
1268 self.PLCEditor.RefreshToolBar() |
|
1269 self.PLCEditor._onclose = _onclose |
1265 self.PLCEditor._onclose = _onclose |
1270 self.PLCEditor._onsave = _onsave |
1266 self.PLCEditor._onsave = _onsave |
1271 self.PLCEditor.Show() |
1267 self.PLCEditor.Show() |
1272 |
1268 |
1273 def _Clean(self): |
1269 def _Clean(self): |