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