From be5ad88029e723e2f5c6b6981fba8518d7a111be Mon Sep 17 00:00:00 2001 From: Alfredo Monclus Date: Thu, 15 Jul 2021 03:01:29 -0300 Subject: [PATCH] add temp to preheat (#196) --- panels/preheat.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/panels/preheat.py b/panels/preheat.py index 14335087..34bc7458 100644 --- a/panels/preheat.py +++ b/panels/preheat.py @@ -69,6 +69,13 @@ class PreheatPanel(ScreenPanel): row = int(i/2) if i%2 == 0 else int(i/2)+1 self.labels["control_grid"].attach(cooldown, i%2, int(i/2), 1, 1) + i += 1 + temperature = self._gtk.ButtonImage('heat-up', _('Temperature')) + temperature.connect("clicked", self.menu_item_clicked, "temperature", { + "name": "Temperature", + "panel": "temperature" + }) + self.labels["control_grid"].attach(temperature, i%2, int(i/2), 1, 1) grid.attach(eq_grid, 0, 0, 1, 1) grid.attach(self.labels["control_grid"], 1, 0, 1, 1)