QPicture and Qpainter PyQt4

2007-09-17 Thread David Boddie
On Mon Sep 17 09:29:43 CEST 2007, luca72 wrote: > class PictureFrame(QtGui.QFrame): > > def __init__(self, parent = None): > QFrame.__init__(self, parent) > picture = QtGui.QPicture() > > def paintEvent(self, event): > picture.load('dis.pic') > gr = QtGui.QPainter() > gr.

Re: QPicture and Qpainter PyQt4

2007-09-17 Thread BlueBird
Hi, It looks like you have several things wrong: On Sep 17, 9:29 am, luca72 <[EMAIL PROTECTED]> wrote: > class Form(QWidget, Ui_Form): > [...] > > @pyqtSignature("") > def on_pushButton_clicked(self): > """ > Slot documentation goes here. > """ > # TOD

QPicture and Qpainter PyQt4

2007-09-17 Thread luca72
Hello at all I have made this small tests: this is the form implementation: # -*- coding: utf-8 -*- """ Module implementing Form. """ from PyQt4.QtGui import QWidget from PyQt4.QtCore import pyqtSignature from PyQt4 import * from disegni import PictureFrame from Ui_form import Ui_Form class F