summaryrefslogtreecommitdiffstats
path: root/scripts/capty
diff options
context:
space:
mode:
authorLibravatarAgustin Henze <tin@sluc.org.ar>2014-02-28 08:49:38 -0300
committerLibravatarAgustin Henze <tin@sluc.org.ar>2014-02-28 08:49:38 -0300
commit2828399ba5cbb14502b023d4de1ba02f13dd5055 (patch)
tree38012b6bacaa508ca56fb6f4ba87b912bb54b8c9 /scripts/capty
parentca94afc07df55cb7fc6fe3b4f3011877b7881195 (diff)
Imported Upstream version 6.3.0upstream/6.3.0
Diffstat (limited to 'scripts/capty')
-rwxr-xr-xscripts/capty8
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()