I am attempting to learn the PyMT library and am trying to implement a simple program that i found on the web. however every time i open the script in PyMT it crashes as soon as it opens is there any thing that is incorrect in my code that would be cause it to be crashing?
from pymt import *
class Tracer(MTWidget):
def init(self):
self.lines = []
def on_touch_down(self, touch):
touch.userdata['line'] = list(touch.pos)
self.lines.append (touch.userdata['line'])
def on_touch_move(self, touch):
touch.userdata['line'].extend(touch.pos)
def draw(self) :
for touch in getAvailableTouchs():
drawLine(line)
w = MTWindow()
canvas = MTScatterPlane()
canvas.add_widget(Tracer())
w.add_widget(canvas)
runTouchApp()
SO apparently if you are importing the .py file which is what PyMT does you can’t create the ui….does anyone know how i would go about setting up a UI then?