Ver Fonte

Code Cleanup

Ander há 11 anos atrás
pai
commit
c1c845ea3b

+ 1 - 0
mopidy_touchscreen/__init__.py

@@ -1,4 +1,5 @@
 from __future__ import unicode_literals
+
 import os
 
 from mopidy import config, ext

+ 2 - 1
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

+ 1 - 0
mopidy_touchscreen/screen_manager.py

@@ -1,5 +1,6 @@
 import logging
 import traceback
+
 from pkg_resources import Requirement, resource_filename
 
 import pygame

+ 4 - 3
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)