Answer the question
In order to leave comments, you need to log in
How to allow kivy to watch in event1?
after launch
from kivy.app import App
from kivy.uix.button import Button
class TutorialApp (App):
def build(self):
return Button(text='hello',
background_color=(0,0,0,1),
font_size=150)
if __name__ == '__main__':
TutorialApp().run()
$ python3 po.py
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
self.run()
File "/usr/lib/python3.4/threading.py", line 868, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.4/dist-packages/kivy/input/providers/mtdev.py", line 219, in _thread_run
_device = Device(_fn)
File "/usr/local/lib/python3.4/dist-packages/kivy/lib/mtdev.py", line 131, in __init__
self._fd = os.open(filename, os.O_NONBLOCK | os.O_RDONLY)
PermissionError: [Errno 13] Permission denied: '/dev/input/event1'
$ sudo python3 po.py
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question