Progressbar color

Volume control working
This commit is contained in:
9and3r
2014-07-20 22:27:12 +02:00
parent e012648dc4
commit 912d8016d3
9 changed files with 412 additions and 164 deletions

View File

@@ -0,0 +1,18 @@
import pykka
from mopidy import backend
import logging
logger = logging.getLogger(__name__)
class TouchScreenBackend(pykka.ThreadingActor, backend.Backend):
def __init__(self, config, audio):
super(TouchScreenBackend, self).__init__()
self.audio = audio
logger.error("backend funciona")
def on_receive(self, message):
logger.error("heldu naiz")
if message['action'] == 'volume':
logger.error("bolumena aldatzen")
self.audio.set_volume(message['value'])