def __init__(self, trajectoryQueue, sync, stop): self.leastSquare = LeastSquareFilter(5) self.mousepointer = MousepointerSimulator(None) LearningThread.__init__(self, trajectoryQueue, sync, stop) self.pygame = pygame.init() info = pygame.display.Info() displayX = info.current_w displayY = info.current_h scalingX = displayX/400; scalingY = displayY/300; self.interpolator = Interpolator(scalingX,scalingY)