summaryrefslogtreecommitdiff
path: root/9kwpyqt.py
diff options
context:
space:
mode:
Diffstat (limited to '9kwpyqt.py')
-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)