On Sat, 27 May 2006 09:01:04 -0700
Brian <[EMAIL PROTECTED]> wrote:

[problems with weight-set]

> It's working for my app just fine.  Currently at glib-2.10.2
[...]

>     def cell_data_func(self, column, renderer, model, iter, data):
>             """function to render the package name according
>                to whether it is in the world file or not"""
>             #full_name = model.get_value(iter, 0)
>             color = model.get_value(iter, 5)
>             if model.get_value(iter, 4):
>                 renderer.set_property("weight", pango.WEIGHT_BOLD)
>             else:
>                 renderer.set_property("weight", pango.WEIGHT_NORMAL)

But you aren't using 'weight-set', you are setting the weight property
each time to WEIGHT_BOLD or WEIGHT_NORMAL.

-- 
 
 |\ |       |HomePage   : http://nem01.altervista.org
 | \|emesis |XPN (my nr): http://xpn.altervista.org
_______________________________________________
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