shutdown: add restart ks
This commit is contained in:
parent
db4ebfe140
commit
4bca9ff028
@ -21,9 +21,13 @@ class Panel(ScreenPanel):
|
|||||||
restart = self._gtk.Button("refresh", _("Restart"), "color3")
|
restart = self._gtk.Button("refresh", _("Restart"), "color3")
|
||||||
restart.connect("clicked", self.reboot_poweroff, "reboot")
|
restart.connect("clicked", self.reboot_poweroff, "reboot")
|
||||||
|
|
||||||
|
restart_ks = self._gtk.Button("refresh", _("Restart") + "KlipperScreen", "color3")
|
||||||
|
restart_ks.connect("clicked", self._screen.restart_ks)
|
||||||
|
|
||||||
self.main = Gtk.Grid(row_homogeneous=True, column_homogeneous=True)
|
self.main = Gtk.Grid(row_homogeneous=True, column_homogeneous=True)
|
||||||
if self._printer and self._printer.state not in {'disconnected', 'startup', 'shutdown', 'error'}:
|
if self._printer and self._printer.state not in {'disconnected', 'startup', 'shutdown', 'error'}:
|
||||||
self.main.attach(estop, 0, 0, 2, 1)
|
self.main.attach(estop, 0, 0, 1, 1)
|
||||||
|
self.main.attach(restart_ks, 1, 0, 1, 1)
|
||||||
self.main.attach(poweroff, 0, 1, 1, 1)
|
self.main.attach(poweroff, 0, 1, 1, 1)
|
||||||
self.main.attach(restart, 1, 1, 1, 1)
|
self.main.attach(restart, 1, 1, 1, 1)
|
||||||
self.content.add(self.main)
|
self.content.add(self.main)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user