summaryrefslogtreecommitdiff
path: root/9kwpyqt.py
diff options
context:
space:
mode:
Diffstat (limited to '9kwpyqt.py')
-rwxr-xr-x9kwpyqt.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/9kwpyqt.py b/9kwpyqt.py
index 9acf9eb..1539032 100755
--- a/9kwpyqt.py
+++ b/9kwpyqt.py
@@ -104,6 +104,11 @@ class CaptchaGUI(QWidget):
self.setLayout(mainLayout)
self.setWindowTitle("Captcha 9kw PyQt")
+ if not API_KEY:
+ self.captchaImage.setText("API_KEY is missing.\nPlease edit this file and enter your key at the top.")
+ self.startstopButton.setEnabled(False)
+ return
+
# load soundfile
self.sound = QSound(soundfile)