[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] Newbie seeks QT Canvas example
From: Boudewijn Rempt <boud () valdyas ! org>
Date: 2001-12-19 21:02:38
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 19 September 2001 18:42, Moray Taylor wrote:
> Hi,
>
> I am looking for a short, simple example of displaying an image (PNG, JPEG
> or whatever) on a canvas using PyQT and Python. I can use the
> SetBackgroundPixmap, but I cannot figure out how to place a picture at an
> XY coordinate.
>
I haven't got an actual example at hand, but you should probably
use a QCanvasSprite that you create with a QCanvasPixmapArray containing
just one QCanvasPixmap. As I said, I haven't tried this myself, but there's
a chapter on canvases in the book (which is now officially late :-(, and there
was me hoping for great Christmas sales).
- --
Boudewijn Rempt | http://www.valdyas.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8IPInN8fj6DnPxOgRArjyAJ42/lnUVry2PvkogojbspvLKoZObACeN/67
rNX1zjF1vbC+0TG9ahluugc=
=l4ij
-----END PGP SIGNATURE-----
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic