mirror of
https://github.com/Febbweiss/mopidy-touchscreen.git
synced 2026-03-04 22:25:39 +00:00
Code cleanup
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import logging
|
||||
|
||||
|
||||
from .touch_manager import TouchManager
|
||||
from .screen_objects import ScreenObjectsManager, TouchAndTextItem, ScrollBar
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ import pykka
|
||||
import traceback
|
||||
import logging
|
||||
from threading import Thread
|
||||
|
||||
import pygame
|
||||
|
||||
from mopidy import core
|
||||
@@ -16,7 +17,7 @@ class TouchScreen(pykka.ThreadingActor, core.CoreListener):
|
||||
def __init__(self, config, core):
|
||||
super(TouchScreen, self).__init__()
|
||||
self.backend = \
|
||||
pykka.ActorRegistry.get_by_class_name("TouchScreenBackend")[0]
|
||||
pykka.ActorRegistry.get_by_class_name("TouchScreenBackend")[0]
|
||||
self.core = core
|
||||
self.running = False
|
||||
self.screen_size = (config['touchscreen']['screen_width'],
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import logging
|
||||
|
||||
import pykka
|
||||
|
||||
|
||||
from mopidy import backend
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
import unittest
|
||||
|
||||
|
||||
from mopidy_touchscreen import Extension, touch_screen as frontend_lib
|
||||
from mopidy_touchscreen import Extension
|
||||
# ,touch_screen as frontend_lib
|
||||
|
||||
|
||||
class ExtensionTest(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user