[pygtk] Extents
dave
dave at immunityinc.com
Tue Mar 3 03:47:47 WST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm working on a program that uses pygoocanvas and pygtk and I'm running
into a strange problem.
What I'm trying to do is ask pygoocanvas/pycairo how large a string is
going to be when I paint it onto the screen. (So I can wrap a box around
it, etc).
I do this with goocanvas.Text(text="Hi") and then get_natural_extents()
which generally returns a width and height in thousands of pixels, which
seems wrong. :>
Is there a better way to ask for how big a text string would be?
- -dave
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkmsKdMACgkQtehAhL0ghep19ACfVbDdN78CPZLHVnJEMTIKfXJu
c4IAnRyfkpGOTu24D3TvSoNocsNgrsHu
=KoAL
-----END PGP SIGNATURE-----
More information about the pygtk
mailing list