diff options
author | André Glüpker <git@wgmd.de> | 2016-03-24 19:30:47 +0100 |
---|---|---|
committer | André Glüpker <git@wgmd.de> | 2016-03-24 19:30:47 +0100 |
commit | 616f1cae0858ec0bbf974ae62d7e6d7ed1239f0a (patch) | |
tree | b5185e697bf56c32a7a46c77603a946707411c7d /9kwpyqt.py | |
parent | 3ddf05d512f08fa4f46ae4d5e9f9bc3f3630217d (diff) | |
download | 9kwpyqt-616f1cae0858ec0bbf974ae62d7e6d7ed1239f0a.tar.gz 9kwpyqt-616f1cae0858ec0bbf974ae62d7e6d7ed1239f0a.tar.bz2 9kwpyqt-616f1cae0858ec0bbf974ae62d7e6d7ed1239f0a.zip |
fix save image function
Diffstat (limited to '9kwpyqt.py')
-rwxr-xr-x | 9kwpyqt.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |