switch save and cancel, make recipes available through menu, remove calibration tools in mock

This commit is contained in:
Jannes Magnusson
2026-03-17 08:38:34 +01:00
parent 74b1aa0706
commit befe9f0a9e
4 changed files with 25 additions and 9 deletions

View File

@@ -15,11 +15,14 @@ class MenuView(View, ButtonInterface):
def __init__(self, parent, im_size, center,
bluetooth_pair_command=None,
recipes_command=None,
deactivate_command=None):
self.deactivate_command = deactivate_command
self.bluetooth_pair_command = bluetooth_pair_command
self.recipes_command = recipes_command
self.item_list = CarouselView(render_height=124, large_font_size=20)
self._actions = [
("Recipes", self.recipes_command),
("BT Pair", self.bluetooth_pair_command),
]
self.item_list.items = [_make_text_item(label) for label, _ in self._actions]