/usr/share/pyshared/pymt/tools/dumpinput.py is in python-pymt 0.5.1-0ubuntu3.
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 | from pymt import *
class DumpListener(EventDispatcher):
def __init__(self):
super(DumpListener, self).__init__()
self.register_event_type('on_touch_down')
self.register_event_type('on_touch_move')
self.register_event_type('on_touch_up')
def on_touch_down(self, touch):
print 'DOWN - ', repr(touch)
def on_touch_move(self, touch):
print 'MOVE - ', repr(touch)
def on_touch_up(self, touch):
print 'UP - ', repr(touch)
touch_event_listeners.append(DumpListener())
# will run with empty window
runTouchApp()
|