diff options
author | André Glüpker <git@wgmd.de> | 2016-03-20 11:20:34 +0100 |
---|---|---|
committer | André Glüpker <git@wgmd.de> | 2016-03-20 11:20:34 +0100 |
commit | 709b5e81f23708c17541f711db574edf87c354a2 (patch) | |
tree | 3afa9a8acfd9eb0b769f6e3d0420997014e540b4 | |
parent | 2e51508ac4ae567438c42f2e73dc33f4a0323f11 (diff) | |
download | 9kwpyqt-709b5e81f23708c17541f711db574edf87c354a2.tar.gz 9kwpyqt-709b5e81f23708c17541f711db574edf87c354a2.tar.bz2 9kwpyqt-709b5e81f23708c17541f711db574edf87c354a2.zip |
Colorize Start/Stop-Button to show current (live) status
-rwxr-xr-x | 9kwpyqt.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |