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/plugin/music/player.py

16 lines
439 B
Python
Raw Normal View History

2022-12-28 11:26:30 -06:00
from menu import Menu, MenuType
2022-12-28 10:14:33 -06:00
from cinput import ControlInput
from graphics import Graphics
class MusicPlayer:
def __init__(self, cinput: ControlInput, graphics: Graphics, menu: Menu):
self._cinput = cinput
self._graphics = graphics
self._menu = menu
def run(self):
while True:
2022-12-28 11:26:30 -06:00
item = self._menu.get_selection()
if item.menu_type == MenuType.BACK:
return