mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-24 15:14:00 -06:00
menu: Replace menu with new Jinja2 template system (#2344)
menu.cfg: - jinja2 template scripting - new Setup menu - new Calibration menu menu: - redesigned menu code - jinja2 support - option to reverse menu up and down directions - functionality set to support menu injection from other modules - a new way of defining menu hierarchy - other adjustments Signed-off-by: Janar Sööt <janar.soot@gmail.com>
This commit is contained in:
parent
efebbb9a2f
commit
d991b4c83b
5 changed files with 1231 additions and 1592 deletions
|
@ -87,7 +87,7 @@ class PrinterLCD:
|
|||
name = config.get_name()
|
||||
if name == 'display':
|
||||
# only load menu for primary display
|
||||
self.menu = menu.MenuManager(config, self.lcd_chip)
|
||||
self.menu = menu.MenuManager(config, self)
|
||||
self.printer.load_object(config, "display_status")
|
||||
# Configurable display
|
||||
self.display_templates = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue