mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-23 15:53:36 +05:00
Compare commits
2 Commits
72e3a56e4f
...
78dbf31576
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78dbf31576 | ||
|
|
fef8b58510 |
@@ -9,6 +9,7 @@
|
||||
|
||||
import textwrap
|
||||
|
||||
from components.klipper_firmware.menus.klipper_flash_menu import KlipperFlashMenu
|
||||
from core.menus import BACK_FOOTER
|
||||
from core.menus.base_menu import BaseMenu
|
||||
from utils.constants import COLOR_YELLOW, RESET_FORMAT
|
||||
@@ -16,7 +17,18 @@ from utils.constants import COLOR_YELLOW, RESET_FORMAT
|
||||
|
||||
class AdvancedMenu(BaseMenu):
|
||||
def __init__(self):
|
||||
super().__init__(header=True, options={}, footer_type=BACK_FOOTER)
|
||||
super().__init__(
|
||||
header=True,
|
||||
options={
|
||||
"1": None,
|
||||
"2": None,
|
||||
"3": None,
|
||||
"4": KlipperFlashMenu,
|
||||
"5": None,
|
||||
"6": None,
|
||||
},
|
||||
footer_type=BACK_FOOTER,
|
||||
)
|
||||
|
||||
def print_menu(self):
|
||||
header = " [ Advanced Menu ] "
|
||||
@@ -35,10 +47,7 @@ class AdvancedMenu(BaseMenu):
|
||||
| 3) [Build] |
|
||||
| 4) [Flash] |
|
||||
| 5) [Build + Flash] |
|
||||
| 6) [Get MCU ID] |
|
||||
| |
|
||||
| Mainsail: |
|
||||
| 7) [Theme installer] |
|
||||
| 6) [Get MCU ID] |
|
||||
"""
|
||||
)[1:]
|
||||
print(menu, end="")
|
||||
|
||||
@@ -153,8 +153,6 @@ class BaseMenu(ABC):
|
||||
sys.exit(0)
|
||||
elif choice == "b":
|
||||
return
|
||||
elif choice == "h":
|
||||
print("help!")
|
||||
else:
|
||||
self.execute_option(choice)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user