mirror of https://github.com/kivy/kivy.git
flake8 fixes
This commit is contained in:
parent
def2bcb49d
commit
1ae827e881
|
@ -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
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue