David Gil Oliva wrote:

Hi!

Can anyone tell me how can I change the font description of a
CellRendererText to, for instance, Courier 12? It's a silly question,
but I have read the docs and I don't get it.


If you want to have all cells use Courier 12 set the "font" property. See:

http://www.pygtk.org/pygtk2reference/class-gtkcellrenderertext.html

Otherwise use an attribute to set the font from the column of the TreeModel.

http://www.pygtk.org/pygtk2reference/class-gtktreeviewcolumn.html#method-gtktreeviewcolumn--add-attribute

More info on CellRenderers in:

http://www.pygtk.org/pygtk2tutorial/sec-CellRenderers.html

especially interesting:

http://www.pygtk.org/pygtk2tutorial/sec-CellRenderers.html#sec-CellRendererTextMarkup

John
<http://www.pygtk.org/pygtk2reference/class-pangofontdescription.html>

_______________________________________________
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