Hi,

> The immedate problem is that layout.set_width() apparently expects
> something other than pixels. If I do layout.set_width(200000),
> get_pixel_size() will return a width of 195 pixels. I couldn't find
> anything in the documentation about the units set_width() expects or
> how to convert number of pixels to it.
> Where is this documented, and how could I handle the conversion?
The factor is pango.SCALE, and you can use pango.PIXELS(layout_space) to
convert (or just divide).
No clue about your other question, though.

Iñaki

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to