diff options
Diffstat (limited to '9kwpyqt.py')
-rwxr-xr-x | 9kwpyqt.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |