This repository has been archived on 2022-12-29. You can view files and clone it, but cannot push or open issues or pull requests.
zeropod/main.py

25 lines
578 B
Python
Raw Normal View History

2022-04-23 13:37:54 -05:00
import os
from menu import Menu, MenuItem, MenuType
from cinput import ControlInput
from graphics import Graphics
2022-04-23 13:37:54 -05:00
menu_config = [
MenuItem("Information",
MenuType.EXEC_PLUGIN),
MenuItem("Apps",
MenuType.SUB_MENU),
MenuItem("Reboot",
MenuType.EXEC_CMD),
MenuItem("Shutdown",
MenuType.EXEC_CMD)]
cinput = ControlInput()
graphics = Graphics()
menu = Menu(menu_config, cinput, graphics)
try:
menu.get_selection()
except KeyboardInterrupt:
graphics.clear()
graphics.show()
os._exit(0)