lpcmanager

1a849478ef76
Parents a20dbb80016b
Children 3b1490f9f0a2
Moved _Transfer customization (ask stop before transfer) to Beremiz.
--- a/LPCProjectController.py Wed Feb 07 16:18:03 2018 +0100
+++ b/LPCProjectController.py Wed Feb 07 16:20:22 2018 +0100
@@ -166,15 +166,6 @@
return None
- # TODO : move to vanilla beremiz
- def _Transfer(self):
- if self.IsPLCStarted():
- dialog = wx.MessageDialog(self.AppFrame, "You must stop the PLC before transfer. Do you want to stop it now and transfer?", style=wx.YES_NO|wx.CENTRE)
- if dialog.ShowModal() == wx.ID_YES:
- self._Stop()
- else:
- return
- return ProjectController._Transfer(self)
def _UpdateFw(self):
"""
Method called by user to flash the firmware of the PLC