From 1ae827e8818c81dbf6dfb66fa59e7e09348b65af Mon Sep 17 00:00:00 2001 From: tshirtman Date: Sat, 8 Dec 2012 16:41:15 +0100 Subject: [PATCH] flake8 fixes --- kivy/input/providers/mouse.py | 8 ++++---- kivy/uix/scrollview.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kivy/input/providers/mouse.py b/kivy/input/providers/mouse.py index badf7f7a2..ef3647324 100644 --- a/kivy/input/providers/mouse.py +++ b/kivy/input/providers/mouse.py @@ -67,9 +67,9 @@ class MouseMotionEvent(MotionEvent): if de is not None: self.push() self.scale_for_screen( - win.system_size[0], - win.system_size[1], - rotation=win.rotation) + win.system_size[0], + win.system_size[1], + rotation=win.rotation) de[1].pos = self.x - 10, self.y - 10 self.pop() @@ -192,7 +192,7 @@ class MouseMotionEventProvider(MotionEventProvider): else: is_double_tap = 'shift' in modifiers do_graphics = (not self.disable_multitouch and button != 'left' or - ('ctrl' in modifiers)) + ('ctrl' in modifiers)) cur = self.create_touch(rx, ry, is_double_tap, do_graphics, button) if 'alt' in modifiers: self.alt_touch = cur diff --git a/kivy/uix/scrollview.py b/kivy/uix/scrollview.py index 9e52926c6..3eeb44c84 100644 --- a/kivy/uix/scrollview.py +++ b/kivy/uix/scrollview.py @@ -94,7 +94,7 @@ from kivy.properties import NumericProperty, BooleanProperty, AliasProperty, \ # When we are generating documentation, Config doesn't exist _scroll_moves = _scroll_timeout = _scroll_stoptime = \ - _scroll_distance = _scroll_friction = 0 + _scroll_distance = _scroll_friction = 0 if Config: _scroll_timeout = Config.getint('widgets', 'scroll_timeout') _scroll_stoptime = Config.getint('widgets', 'scroll_stoptime')