[PyKDE] .. a bit of progress ...
Dave S
eric3 at pusspaws.net
Sat Sep 16 23:27:35 BST 2006
On Saturday 16 September 2006 10:55, Sebastian Kügler wrote:
> 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,
Thanks guys - that's great :)
Dave
More information about the PyQt
mailing list