diff --git a/mopidy_touchscreen/__init__.py b/mopidy_touchscreen/__init__.py index 0c7437e..043819a 100644 --- a/mopidy_touchscreen/__init__.py +++ b/mopidy_touchscreen/__init__.py @@ -1,4 +1,5 @@ from __future__ import unicode_literals + import os from mopidy import config, ext diff --git a/mopidy_touchscreen/main_screen.py b/mopidy_touchscreen/main_screen.py index bf46f86..a3ad9ab 100644 --- a/mopidy_touchscreen/main_screen.py +++ b/mopidy_touchscreen/main_screen.py @@ -7,9 +7,10 @@ import urllib import urllib2 from threading import Thread +import mopidy.core + import pygame -import mopidy.core from .base_screen import BaseScreen from .input_manager import InputManager diff --git a/mopidy_touchscreen/screen_manager.py b/mopidy_touchscreen/screen_manager.py index 1cb956e..08de44f 100644 --- a/mopidy_touchscreen/screen_manager.py +++ b/mopidy_touchscreen/screen_manager.py @@ -1,5 +1,6 @@ import logging import traceback + from pkg_resources import Requirement, resource_filename import pygame diff --git a/mopidy_touchscreen/touch_screen.py b/mopidy_touchscreen/touch_screen.py index 3652294..e7886df 100644 --- a/mopidy_touchscreen/touch_screen.py +++ b/mopidy_touchscreen/touch_screen.py @@ -4,10 +4,11 @@ import traceback from threading import Thread import pygame + import pykka -import mopidy from mopidy import core +import mopidy from .screen_manager import ScreenManager @@ -57,8 +58,8 @@ class TouchScreen(pykka.ThreadingActor, core.CoreListener): def get_display_surface(self, size): if self.fullscreen: - self.screen = pygame.display.set_mode(size, - pygame.FULLSCREEN) + self.screen = pygame.display.set_mode( + size, pygame.FULLSCREEN) else: self.screen = pygame.display.set_mode(size, pygame.RESIZABLE)