mirror of
https://github.com/Febbweiss/mopidy-touchscreen.git
synced 2026-03-05 06:35:43 +00:00
flake8: Fix warnings
One warning was left unresolved, to not conflict with PR #3.
This commit is contained in:
@@ -87,7 +87,8 @@ class ListView():
|
|||||||
self.move_to(direction)
|
self.move_to(direction)
|
||||||
else:
|
else:
|
||||||
return int(key)
|
return int(key)
|
||||||
elif touch_event.type == InputManager.key and self.selected is not None:
|
elif (touch_event.type == InputManager.key and
|
||||||
|
self.selected is not None):
|
||||||
if touch_event.direction == InputManager.enter:
|
if touch_event.direction == InputManager.enter:
|
||||||
if self.selected is not None:
|
if self.selected is not None:
|
||||||
return self.selected
|
return self.selected
|
||||||
|
|||||||
@@ -29,14 +29,15 @@ class TouchScreen(pykka.ThreadingActor, core.CoreListener):
|
|||||||
if config['touchscreen']['sdl_fbdev'].lower() != "none":
|
if config['touchscreen']['sdl_fbdev'].lower() != "none":
|
||||||
os.environ["SDL_FBDEV"] = config['touchscreen']['sdl_fbdev']
|
os.environ["SDL_FBDEV"] = config['touchscreen']['sdl_fbdev']
|
||||||
if config['touchscreen']['sdl_mousdrv'].lower() != "none":
|
if config['touchscreen']['sdl_mousdrv'].lower() != "none":
|
||||||
os.environ["SDL_MOUSEDRV"] = config['touchscreen'][
|
os.environ["SDL_MOUSEDRV"] = (
|
||||||
'sdl_mousdrv']
|
config['touchscreen']['sdl_mousdrv'])
|
||||||
|
|
||||||
if config['touchscreen']['sdl_mousedev'].lower() != "none":
|
if config['touchscreen']['sdl_mousedev'].lower() != "none":
|
||||||
os.environ["SDL_MOUSEDEV"] = config['touchscreen']['sdl_mousedev']
|
os.environ["SDL_MOUSEDEV"] = config['touchscreen']['sdl_mousedev']
|
||||||
|
|
||||||
if config['touchscreen']['sdl_audiodriver'].lower() != "none":
|
if config['touchscreen']['sdl_audiodriver'].lower() != "none":
|
||||||
os.environ["SDL_AUDIODRIVER"] = config['touchscreen']['sdl_audiodriver']
|
os.environ["SDL_AUDIODRIVER"] = (
|
||||||
|
config['touchscreen']['sdl_audiodriver'])
|
||||||
|
|
||||||
os.environ["SDL_PATH_DSP"] = config['touchscreen']['sdl_path_dsp']
|
os.environ["SDL_PATH_DSP"] = config['touchscreen']['sdl_path_dsp']
|
||||||
pygame.init()
|
pygame.init()
|
||||||
|
|||||||
Reference in New Issue
Block a user