summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)