View Single Post
Posts: 146 | Thanked: 15 times | Joined on Oct 2008
#14
Originally Posted by daperl View Post
It's kinda cool when you think about it. From the example just try the following:

Code:
myMessage = 'Blue text'
fontSize = 100
myMessageDialog.label.set_markup("<span foreground=\"blue\" size=\"%d\">%s</span> is <i>cool</i>!" % (fontSize,myMessage))
The only thing I see is "is cool!", with "cool" in italics, and with the same usual font. That is, no "Blue text", and the same old fonts.

Anyway, could I apply this to change the fonts inside a gtk.ComboBox?

Thanks,
L.

Last edited by luis; 2009-09-01 at 18:22.