blob: d283725e301407f0cb39413537dd2d6caed093a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import os
from solo_tool.solo_tool import SoloTool
class SoloToolController:
def __init__(self, soloTool: SoloTool):
self._soloTool = soloTool
def nextSong(self):
current = self._soloTool.getCurrentSong()
if current is None:
self._soloTool.setSong(0)
else:
self._soloTool.setSong(current + 1)
def previousSong(self):
current = self._soloTool.getCurrentSong()
if current is None:
self._soloTool.setSong(0)
else:
self._soloTool.setSong(current - 1)
|