PyMTPython的多點觸摸界面庫
PyMT 是一個 Python多點觸摸用戶界面庫。
示例代碼:
from pymt import *
class CircleDrawer(MTWidget):
'''Draw a circle at the position of all touches.'''
def draw(self):
set_color(1, 0, 0)
for touch in getCurrentTouches():
drawCircle(touch.pos, 50)
runTouchApp(CircleDrawer()
評論
圖片
表情
