From 353764bdc8cfef7d5ea30be4506d796e994a9298 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 7 May 2014 15:40:23 +1000 Subject: [PATCH] fixes #3 default args added for Callibrator.start and Callibrator.stop --- pyviewx.pygame/pyviewx/pygame/calibrator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyviewx.pygame/pyviewx/pygame/calibrator.py b/pyviewx.pygame/pyviewx/pygame/calibrator.py index d7f822d..9564eec 100644 --- a/pyviewx.pygame/pyviewx/pygame/calibrator.py +++ b/pyviewx.pygame/pyviewx/pygame/calibrator.py @@ -123,7 +123,7 @@ def _update(self): self.complete = True self.lc.stop() - def start(self, stopCallback, wait=1, randomize=1, auto=0, speed=1, level=3, *args, **kwargs): + def start(self, stopCallback=None, wait=1, randomize=1, auto=0, speed=1, level=3, *args, **kwargs): self.client.setDataFormat('%TS %ET %SX %SY %DX %DY %EX %EY %EZ') self.client.startDataStreaming() self.client.setSizeCalibrationArea(self.width, self.height) @@ -139,7 +139,7 @@ def start(self, stopCallback, wait=1, randomize=1, auto=0, speed=1, level=3, *ar stopCallback = self.stop dd.addCallback(stopCallback, self.calibrationResults, *args, **kwargs) - def stop(self, lc): + def stop(self, args=None, kwargs=None): self.reactor.stop() pygame.quit()