summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2016-03-19 13:22:16 +0100
committerAndré Glüpker <git@wgmd.de>2016-03-19 13:22:16 +0100
commit35d380bf4248f87b78d70b9897e2f2291ed8b322 (patch)
tree36df60e67a2974d5935e110ac1b545a7e9373933
parent21ac60eb589d105e955f1e9432672f0231d0b271 (diff)
download9kwpyqt-35d380bf4248f87b78d70b9897e2f2291ed8b322.tar.gz
9kwpyqt-35d380bf4248f87b78d70b9897e2f2291ed8b322.tar.bz2
9kwpyqt-35d380bf4248f87b78d70b9897e2f2291ed8b322.zip
cleanup
-rwxr-xr-x9kwpyqt.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/9kwpyqt.py b/9kwpyqt.py
index 9431db9..48a0118 100755
--- a/9kwpyqt.py
+++ b/9kwpyqt.py
@@ -38,19 +38,11 @@ class CaptchaGUI(QWidget):
# Top: Credits and Stats
self.accountLabel = QLabel("credits")
self.accountLabel.setAlignment(Qt.AlignLeft)
- # self.timerLabel = QLabel("30 Sek")
- # self.timerLabel.setAlignment(Qt.AlignCenter)
- # self.timerProgress = QProgressBar()
- # self.timerProgress.setRange(0,30)
- # self.timerProgress.setValue(23.65)
- # self.timerProgress.setTextVisible(True)
- # self.timerProgress.text = "Bla und so"
self.statsLabel = QLabel("online stats")
self.statsLabel.setAlignment(Qt.AlignRight)
# self.timerLabel.setStyleSheet("QLabel { color: darkred; }")
- # self.timerLabel.setStyleSheet("QLabel { background-color: gray; }")
self.LayoutStats = QHBoxLayout()
self.LayoutStats.addWidget(self.accountLabel)
@@ -60,7 +52,6 @@ class CaptchaGUI(QWidget):
self.LayoutStats.sizeConstraint = QLayout.SetMinimumSize
# Middle: Captchaimage
- # self.captchaLabel = QLabel("Captcha:")
self.captchaImage = QLabel("")
self.captchaImage.setAlignment(Qt.AlignCenter)
self.captchaImage.setMinimumHeight(400)
@@ -70,7 +61,6 @@ class CaptchaGUI(QWidget):
)
self.captchaBox = QHBoxLayout()
- # self.captchaBox.addWidget(self.captchaLabel)
self.captchaBox.addWidget(self.captchaImage)
# Bottom: Input + Submit/Skip-Buttons
@@ -171,6 +161,7 @@ class CaptchaGUI(QWidget):
def toggleRunning(self):
self.running = not self.running
+ self.captchaImage.setText("")
self.offlinemessage = "Click \"Start\" to fetch next captcha."
self.startstopButton.setText(self.running and "Stop" or "Start")
self.startstopButton.setChecked(self.running)
@@ -219,7 +210,6 @@ class CaptchaGUI(QWidget):
self.captchaImage.setText(self.offlinemessage)
QTimer.singleShot(500, self.getCaptchaID)
return
- self.captchaImage.setText("")
url = QUrl(self.apiurl+"action=usercaptchanew&text=yes&mouse=0&confirm=0")
self.networkCaptchaID = QNetworkRequest(url)
self.networkCaptchaIDReply = self.NetworkManager.get(self.networkCaptchaID)