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.

Attachment: pgpzy4DSD0bU9.pgp
Description: PGP signature

_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to