summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2016-03-20 11:20:34 +0100
committerAndré Glüpker <git@wgmd.de>2016-03-20 11:20:34 +0100
commit709b5e81f23708c17541f711db574edf87c354a2 (patch)
tree3afa9a8acfd9eb0b769f6e3d0420997014e540b4
parent2e51508ac4ae567438c42f2e73dc33f4a0323f11 (diff)
download9kwpyqt-709b5e81f23708c17541f711db574edf87c354a2.tar.gz
9kwpyqt-709b5e81f23708c17541f711db574edf87c354a2.tar.bz2
9kwpyqt-709b5e81f23708c17541f711db574edf87c354a2.zip
Colorize Start/Stop-Button to show current (live) status
-rwxr-xr-x9kwpyqt.py2
1 files changed, 2 insertions, 0 deletions
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)