add temp to preheat (#196)

This commit is contained in:
Alfredo Monclus 2021-07-15 03:01:29 -03:00 committed by GitHub
parent 2018b8b852
commit be5ad88029
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)