[PyKDE] .. a bit of progress ...
Sebastian Kügler
sebas at kde.org
Sat Sep 16 10:55:31 BST 2006
Hi Dave,
On Saturday 16 September 2006 11:22, Dave S wrote:
> A bit of progress but still stuck ...
>
> backgnd_png = self.config.get('files','background')
> print backgnd_png
> image = QImage.load(backgnd_png)
Try
image=QImage()
image.load(backgnd_png)
See also http://doc.trolltech.com/3.3/qimage.html#load
> self.table1.setPaletteBackgroundPixmap(QPixmap(image.scale(1000,
> 1000, QImage.ScaleMax)))
> image = QImage.load(backgnd_png)
> TypeError: first argument of unbound method QImage.load() must be a QImage
> instance
^^^^^^^^ This one is crucial.
Cheers,
--
sebas
http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This joke was brought to you by the Department of Redundancy Department.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 483 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20060916/05a8fa93/attachment.bin
More information about the PyQt
mailing list