mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
fix tidyall/flake8 tests
This commit is contained in:
parent
ad79d2429f
commit
25f1b222a1
1 changed files with 12 additions and 12 deletions
|
@ -31,6 +31,7 @@ from kivy.base import EventLoop
|
||||||
from kivy.base import stopTouchApp
|
from kivy.base import stopTouchApp
|
||||||
from kivy.cache import Cache
|
from kivy.cache import Cache
|
||||||
from kivy.clock import Clock
|
from kivy.clock import Clock
|
||||||
|
from kivy.config import Config
|
||||||
from kivy.core.audio import SoundLoader
|
from kivy.core.audio import SoundLoader
|
||||||
from kivy.core.window import Window
|
from kivy.core.window import Window
|
||||||
from kivy.graphics import Color
|
from kivy.graphics import Color
|
||||||
|
@ -54,8 +55,7 @@ from kivy.utils import platform
|
||||||
|
|
||||||
from pysollib.kivy.androidperms import requestStoragePerm
|
from pysollib.kivy.androidperms import requestStoragePerm
|
||||||
|
|
||||||
from kivy.config import Config
|
if platform != 'android':
|
||||||
if platform is not 'android':
|
|
||||||
Config.set('input', 'mouse', 'mouse,multitouch_on_demand')
|
Config.set('input', 'mouse', 'mouse,multitouch_on_demand')
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
|
@ -729,13 +729,13 @@ class LImageItem(BoxLayout, LBase):
|
||||||
button = 'left'
|
button = 'left'
|
||||||
if 'button' in touch.profile:
|
if 'button' in touch.profile:
|
||||||
button = touch.button
|
button = touch.button
|
||||||
if button is 'left':
|
if button == 'left':
|
||||||
self.send_event_pressed_n(event, '<1>')
|
self.send_event_pressed_n(event, '<1>')
|
||||||
return
|
return
|
||||||
if button is 'middle':
|
if button == 'middle':
|
||||||
self.send_event_pressed_n(event, '<2>')
|
self.send_event_pressed_n(event, '<2>')
|
||||||
return
|
return
|
||||||
if button is 'right':
|
if button == 'right':
|
||||||
self.send_event_pressed_n(event, '<3>')
|
self.send_event_pressed_n(event, '<3>')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue