From 35d380bf4248f87b78d70b9897e2f2291ed8b322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Sat, 19 Mar 2016 13:22:16 +0100 Subject: cleanup --- 9kwpyqt.py | 12 +----------- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.3