def createDrawingCoords(self):
if self.drawingCoords is None:
self.drawingCoords = []
tokens = self._tokenize_path(self.points)
x = float(next(tokens))
y = float(next(tokens))
self.drawingCoords.append(Coordinate.fromCoords(x, y, True))
while True:
try:
self.drawingCoords.append(Coordinate.fromCoords(float(next(tokens)), float(next(tokens)), False))
except StopIteration:
break
except:
exc_type, exc_value, exc_traceback = sys.exc_info()
print("test1 main thread exception : %s" % exc_type)
traceback.print_tb(exc_traceback, limit=2, file=sys.stdout)
return self.drawingCoords
评论列表
文章目录