David Gil Oliva wrote:
Hello!

I have found the following code on the Internet. My problem is that when
I run the program, MyGenericCellRenderer shows the text vertically,
not horizontally. What is happening?

[snip]
layout.set_width(cell_area.width)

The docs don't make it clear, but experimentation shows that the wrap width passed here should be in pango units, not pixels. One pixel is pango.SCALE pango units, so the line should be:


  layout.set_width(cell_area.width * pango.scale)

--
Tim Evans
Applied Research Associates NZ
http://www.aranz.com/
_______________________________________________
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