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

from menu import Menu, MenuType
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:
item = self._menu.get_selection()
if item.menu_type == MenuType.BACK:
return