/usr/share/pyshared/kivy/input/provider.py is in python-kivy 1.7.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | '''
Motion Event Provider
=====================
Abstract class for a implement a :class:`~kivy.input.motionevent.MotionEvent`
provider. The implementation must support the
:func:`~MotionEventProvider.start`, :func:`~MotionEventProvider.stop` and
:func:`~MotionEventProvider.update` methods.
'''
__all__ = ('MotionEventProvider', )
class MotionEventProvider(object):
'''Base class for a provider.
'''
def __init__(self, device, args):
self.device = device
if self.__class__ == MotionEventProvider:
raise NotImplementedError('class MotionEventProvider is abstract')
def start(self):
'''Start the provider. This method is automatically called when the
application is started, and if the configuration use the current
provider.
'''
pass
def stop(self):
'''Stop the provider
'''
pass
def update(self, dispatch_fn):
'''Update the provider, and dispatch all the new touch event though the
`dispatch_fn` argument.
'''
pass
|