Re: How to change font size
- From: "Benjamin M. Schwartz" <bmschwar fas harvard edu>
- To: windflying zhou <windflying zhou gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: How to change font size
- Date: Thu, 15 Nov 2007 23:43:37 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Here's a snippet of python using PyGTK:
self.value = gtk.Label()
valuefont = pango.FontDescription()
valuefont.set_family("monospace")
valuefont.set_absolute_size(300*pango.SCALE)
self.value.modify_font(valuefont)
- --Ben
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHPR/5UJT6e6HFtqQRArZsAJ94xXPnVJFePfIw/e0EgkOjCeFmcACfUVeK
PuizFPs3Q33S/Y5G2yZP2lE=
=dYJp
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]