[pygtk] Label a different font sizes

Vláďa vladovi at atlas.cz
Thu Apr 17 07:38:06 WST 2008


Hi,

I have a question regarding labels and Pango.

I want to use different sizes of font, but unfortunately it doesn't 
work. If I use

self.label = gtk.Label('<span size="14">Text 1</span>\n<span 
size="10">Text 2</span>')

then only the first size definition (14) is taken into account. The 
second line has the same font size.

Is this a feature, bug or my fault? Hot to create a label with different 
font sizes in it?

Thank you


More information about the pygtk mailing list