From 2828399ba5cbb14502b023d4de1ba02f13dd5055 Mon Sep 17 00:00:00 2001 From: Agustin Henze Date: Fri, 28 Feb 2014 08:49:38 -0300 Subject: Imported Upstream version 6.3.0 --- scripts/capty | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/capty') 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() -- cgit v1.2.3