From 1b7146c8ec4c824fd9b3cf652acc527e0cd1a8c4 Mon Sep 17 00:00:00 2001 From: Jordan Ruthe Date: Mon, 23 Nov 2020 21:15:51 -0500 Subject: [PATCH] zcalibrate: Add emergency stop button --- panels/zcalibrate.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/panels/zcalibrate.py b/panels/zcalibrate.py index dd50ce43..cf14fd86 100644 --- a/panels/zcalibrate.py +++ b/panels/zcalibrate.py @@ -61,10 +61,12 @@ class ZCalibratePanel(ScreenPanel): space_grid.attach(distgrid,0,1,1,1) space_grid.attach(Gtk.Label(" "),0,2,1,1) + estop = KlippyGtk.ButtonImage("decrease",_("Emergency Stop"),"color4") + estop.connect("clicked", self.emergency_stop) + complete = KlippyGtk.ButtonImage('complete',_('Accept'),'color2') complete.connect("clicked", self.accept) - b = KlippyGtk.ButtonImage('back', _('Abort')) b.connect("clicked", self.abort) @@ -72,6 +74,7 @@ class ZCalibratePanel(ScreenPanel): grid.attach(zpos, 1, 0, 1, 1) grid.attach(box, 0, 1, 2, 1) grid.attach(zneg, 1, 1, 1, 1) + grid.attach(estop, 3, 0, 1, 1) grid.attach(complete, 3, 1, 1, 1) grid.attach(space_grid, 0, 2, 3, 1) grid.attach(b, 3, 2, 1, 1)