From 709b5e81f23708c17541f711db574edf87c354a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Sun, 20 Mar 2016 11:20:34 +0100 Subject: Colorize Start/Stop-Button to show current (live) status --- 9kwpyqt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/9kwpyqt.py b/9kwpyqt.py index 3529077..8bd6333 100755 --- a/9kwpyqt.py +++ b/9kwpyqt.py @@ -218,7 +218,9 @@ class CaptchaGUI(QWidget): if not self.running: self.captchaImage.setText(self.offlinemessage) QTimer.singleShot(500, self.getCaptchaID) + self.startstopButton.setStyleSheet("QPushButton { background-color: green; }") return + self.startstopButton.setStyleSheet("QPushButton { background-color: red; }") url = QUrl(self.apiurl+"action=usercaptchanew&text=yes&mouse=0&confirm=0") self.networkCaptchaID = QNetworkRequest(url) self.networkCaptchaIDReply = self.NetworkManager.get(self.networkCaptchaID) -- cgit v1.2.3