summaryrefslogtreecommitdiff
path: root/9kwpyqt.py
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2016-03-24 19:30:47 +0100
committerAndré Glüpker <git@wgmd.de>2016-03-24 19:30:47 +0100
commit616f1cae0858ec0bbf974ae62d7e6d7ed1239f0a (patch)
treeb5185e697bf56c32a7a46c77603a946707411c7d /9kwpyqt.py
parent3ddf05d512f08fa4f46ae4d5e9f9bc3f3630217d (diff)
download9kwpyqt-616f1cae0858ec0bbf974ae62d7e6d7ed1239f0a.tar.gz
9kwpyqt-616f1cae0858ec0bbf974ae62d7e6d7ed1239f0a.tar.bz2
9kwpyqt-616f1cae0858ec0bbf974ae62d7e6d7ed1239f0a.zip
fix save image function
Diffstat (limited to '9kwpyqt.py')
-rwxr-xr-x9kwpyqt.py6
1 files changed, 3 insertions, 3 deletions
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