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.cache import Cache
|
||||
from kivy.clock import Clock
|
||||
from kivy.config import Config
|
||||
from kivy.core.audio import SoundLoader
|
||||
from kivy.core.window import Window
|
||||
from kivy.graphics import Color
|
||||
|
@ -54,8 +55,7 @@ from kivy.utils import platform
|
|||
|
||||
from pysollib.kivy.androidperms import requestStoragePerm
|
||||
|
||||
from kivy.config import Config
|
||||
if platform is not 'android':
|
||||
if platform != 'android':
|
||||
Config.set('input', 'mouse', 'mouse,multitouch_on_demand')
|
||||
|
||||
# =============================================================================
|
||||
|
@ -729,13 +729,13 @@ class LImageItem(BoxLayout, LBase):
|
|||
button = 'left'
|
||||
if 'button' in touch.profile:
|
||||
button = touch.button
|
||||
if button is 'left':
|
||||
if button == 'left':
|
||||
self.send_event_pressed_n(event, '<1>')
|
||||
return
|
||||
if button is 'middle':
|
||||
if button == 'middle':
|
||||
self.send_event_pressed_n(event, '<2>')
|
||||
return
|
||||
if button is 'right':
|
||||
if button == 'right':
|
||||
self.send_event_pressed_n(event, '<3>')
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue