fixed menu config
This commit is contained in:
parent
8ee7015138
commit
545911aead
1 changed files with 30 additions and 29 deletions
59
__main__.py
59
__main__.py
|
@ -9,36 +9,37 @@ from cinput import ControlInput
|
|||
from graphics import Graphics
|
||||
|
||||
menu_config = [
|
||||
MenuItem("Music",
|
||||
MenuType.SUB_MENU,
|
||||
{"sub_menu": [
|
||||
MenuItem("Artists",
|
||||
MenuType.PLUGIN,
|
||||
{"plugin": "music",
|
||||
"arg": "artists"}),
|
||||
MenuItem("Genres",
|
||||
MenuType.PLUGIN,
|
||||
{"plugin": "music",
|
||||
"arg": "genres"}),
|
||||
MenuItem("Playlists",
|
||||
MenuType.PLUGIN,
|
||||
{"plugin": "music",
|
||||
"arg": "playlists"}),
|
||||
]}),
|
||||
MenuItem("System",
|
||||
MenuType.SUB_MENU,
|
||||
{"sub_menu": [
|
||||
MenuItem("Information",
|
||||
MenuType.PLUGIN,
|
||||
{"plugin": "info",
|
||||
"arg": None}),
|
||||
MenuItem("Reboot",
|
||||
MenuType.EXIT_CMD,
|
||||
{"command": "sudo reboot"}),
|
||||
MenuItem("Shutdown",
|
||||
MenuType.EXIT_CMD,
|
||||
{"command": "sudo shutdown now"})
|
||||
MenuItem("Music",
|
||||
MenuType.SUB_MENU,
|
||||
{"sub_menu": [
|
||||
MenuItem("Artists",
|
||||
MenuType.PLUGIN,
|
||||
{"plugin": "music",
|
||||
"arg": "artists"}),
|
||||
MenuItem("Genres",
|
||||
MenuType.PLUGIN,
|
||||
{"plugin": "music",
|
||||
"arg": "genres"}),
|
||||
MenuItem("Playlists",
|
||||
MenuType.PLUGIN,
|
||||
{"plugin": "music",
|
||||
"arg": "playlists"}),
|
||||
]}),
|
||||
MenuItem("System",
|
||||
MenuType.SUB_MENU,
|
||||
{"sub_menu": [
|
||||
MenuItem("Information",
|
||||
MenuType.PLUGIN,
|
||||
{"plugin": "info",
|
||||
"arg": None}),
|
||||
MenuItem("Reboot",
|
||||
MenuType.EXIT_CMD,
|
||||
{"command": "sudo reboot"}),
|
||||
MenuItem("Shutdown",
|
||||
MenuType.EXIT_CMD,
|
||||
{"command": "sudo shutdown now"})
|
||||
]}),
|
||||
]
|
||||
|
||||
cinput = ControlInput()
|
||||
graphics = Graphics()
|
||||
|
|
Reference in a new issue