summaryrefslogtreecommitdiff
path: root/9kwpyqt.py
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2016-04-07 14:25:35 +0200
committerAndré Glüpker <git@wgmd.de>2016-04-07 14:25:35 +0200
commitc299c5b36baf75c8624e47e37b4c836c60787557 (patch)
tree902ed97529e94f78366ba988083f29840b8b37df /9kwpyqt.py
parent7a5ed7d804efe39b43dc2f2c79e87bc627617e8b (diff)
download9kwpyqt-c299c5b36baf75c8624e47e37b4c836c60787557.tar.gz
9kwpyqt-c299c5b36baf75c8624e47e37b4c836c60787557.tar.bz2
9kwpyqt-c299c5b36baf75c8624e47e37b4c836c60787557.zip
Remove legacy (click support on captcha)
Diffstat (limited to '9kwpyqt.py')
-rwxr-xr-x9kwpyqt.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/9kwpyqt.py b/9kwpyqt.py
index b3b7359..d68a1b9 100755
--- a/9kwpyqt.py
+++ b/9kwpyqt.py
@@ -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()