--- a/LPCProjectController.py Mon May 25 14:07:51 2020 +0200
+++ b/LPCProjectController.py Mon Sep 07 15:20:00 2020 +0200
@@ -28,6 +28,14 @@
LPCMethodsFromStatus["Stopped"]["_UpdateFw"] = True
LPCMethodsFromStatus["Empty"]["_UpdateFw"] = True
+ProjectController.ConfNodeMethods += [ + "name": _("Manage alarms"), + "tooltip": _("Describe and translate alarms"), + "method": "_ManageAlarms" class LPCProjectController(ProjectController):
StatusMethods = ProjectController.StatusMethods + LPCStatusMethods
DefaultMethods = LPCDefaultMethods
@@ -162,6 +170,20 @@
+ def _ManageAlarms(self): + dlg = wx.SingleChoiceDialog( + 'Test Single Choice', 'The Caption', + ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight'], + if dlg.ShowModal() == wx.ID_OK: + self.log.WriteText('You selected: %s\n' % dlg.GetStringSelection()) Method called by user to flash the firmware of the PLC