[PyKDE] Newbie seeks QT Canvas example
Boudewijn Rempt
boud at valdyas.org
Wed Dec 19 21:02:38 GMT 2001
-----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-----
More information about the PyQt
mailing list