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