diff options
| author | 2014-02-28 08:49:41 -0300 | |
|---|---|---|
| committer | 2014-02-28 08:49:41 -0300 | |
| commit | 0f1e24f7888ba16fe5629c57fd00f0deacb63e5e (patch) | |
| tree | 7153a3a11b766f375b1d1c0a7adc599e0a9f9c55 /scripts/capty | |
| parent | 04fc43563d3d5d4218004690b5e14c19c67bdcbc (diff) | |
| parent | 2828399ba5cbb14502b023d4de1ba02f13dd5055 (diff) | |
Merge tag 'upstream/6.3.0'
Upstream version 6.3.0
Diffstat (limited to 'scripts/capty')
| -rwxr-xr-x | scripts/capty | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/capty b/scripts/capty index 56c424c..a467489 100755 --- a/scripts/capty +++ b/scripts/capty @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python2 # -*- coding: utf-8 -*- """This tries to do more or less the same thing as CutyCapt, but as a @@ -54,7 +54,7 @@ class Capturer(object): def capture(self): """Captures url as an image to the file specified""" self.wb = QtWebKit.QWebPage() - self.wb.setPreferredContentsSize(QtCore.QSize(900, 700)) + self.wb.setPreferredContentsSize(QtCore.QSize(1024, 768)) self.wb.mainFrame().setScrollBarPolicy( QtCore.Qt.Horizontal, QtCore.Qt.ScrollBarAlwaysOff) self.wb.mainFrame().setScrollBarPolicy( @@ -67,10 +67,10 @@ class Capturer(object): self.wb.mainFrame().load(QtCore.QUrl(self.url)) def doCapture(self): - print "Capturando" + print("Capturing...") self.wb.setViewportSize(self.wb.mainFrame().contentsSize()) img = QtGui.QImage(self.wb.viewportSize(), QtGui.QImage.Format_ARGB32) - print self.wb.viewportSize() + print(self.wb.viewportSize()) painter = QtGui.QPainter(img) self.wb.mainFrame().render(painter) painter.end() |
