diff options
Diffstat (limited to '9kwpyqt.py')
-rwxr-xr-x | 9kwpyqt.py | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -84,7 +84,6 @@ class CaptchaGUI(QWidget): QSizePolicy.MinimumExpanding, QSizePolicy.MinimumExpanding ) - self.captchaImage.clicked.connect(self.captchaClicked) self.captchaBox = QHBoxLayout() self.captchaBox.addWidget(self.captchaImage) @@ -140,13 +139,6 @@ class CaptchaGUI(QWidget): ################################################## # Handle gui ################################################## - def captchaClicked(self, clickedpiece, separator): - text = self.captchaInputLine.text() - if len(text) > 0 and separator: - text += separator - text += str(clickedpiece) - self.captchaInputLine.setText(text) - def updateStats(self): if self.startCredits: credittext = "%d ¥ (%s%d)" % (self.currentCredits, (self.currentCredits - self.startCredits > 0) and '+' or '', (self.currentCredits - self.startCredits)) @@ -347,13 +339,9 @@ class CaptchaGUI(QWidget): self.running = False self.setCaptchaAnswer("", skip=True, queue=False) - def main(): - # NOTE(andre): urlopen() will first try ipv6, if available - # hacky way to remove IPv6: http://stackoverflow.com/questions/2014534/force-python-mechanize-urllib2-to-only-use-a-requests/6319043 - # better way: disable IPv6, if your isp does not support it - # import pudb; pudb.set_trace() + app = QApplication(sys.argv) screen = CaptchaGUI() screen.show() |