From 616f1cae0858ec0bbf974ae62d7e6d7ed1239f0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Thu, 24 Mar 2016 19:30:47 +0100 Subject: fix save image function --- 9kwpyqt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '9kwpyqt.py') diff --git a/9kwpyqt.py b/9kwpyqt.py index 1381d9b..3ea6fcb 100755 --- a/9kwpyqt.py +++ b/9kwpyqt.py @@ -284,9 +284,9 @@ class CaptchaGUI(QWidget): self.startstopButton.setText(self.running and "Stop" or "Start") self.startstopButton.setChecked(self.running) - # def saveImage(self): - # if self.image: - # self.image.save("captcha-"+str(time.time())+".jpg") + def saveImage(self): + if self.captchaImage.image: + self.captchaImage.image.save("captcha-"+str(time.time())+".jpg") ################################################## # Handle network -- cgit v1.2.3