:> 
:> On Fri, Mar 19, 2004 at 10:07:32AM -0500, george young wrote:
:> > Gtk-WARNING **: Failed to set label from markup due to 
:> error parsing
:> > markup: Error on line 1 char 21: Odd character 'r', 
:> expected an open 
:> > quote mark after the equals sign when giving value for attribute 
:> > 'color' of element 'font'
:> > 
:> > I put quotes around "red" and got:
:> 
:> Do the docs specify that attributes need to be quoted? The 
:> do, anyway.
:> 
:> > I wonder if a searchable version of the pygtk docs wouldn't be 
:> > helpful.  It took me some hacking to find this reference 
:> because words 
:> > like 'font' are extremely common in the html(meta) part of 
:> the docs. 
:> > Are the doc sources in some form that would be easily searchable?

Do you have the source packages?
In pango-1.[234].x/docs/html do a "grep markup *" and you will find the
pango_markup_.., sorry don't know the exact name. But you should consider,
that the markups used in the pango engine are not the common used as in the
html-world. You should use <span foreground="red">your text</span>. You
could give also rgb-values (#rrggbb). Other attributes for span are,
background, size (not height!)-possible values:
smaller|small|normal|larger|x-large|xx-large, wheight, font_family and so
on. There are some shortcuts (<big>, <i>, <b>) and so on. For the complete
list you should wait for coming up the gnome site.

--maik./

maik dot hertha at berlin dot de


_______________________________________________
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