Hi,
I have a TreeView. I change the color of some lines like this:
for note in Note.query.filter_by(scr = scr_id):
data_model.append(iter, [self.get_background(note),
self.get_foreground(note), self.get_Bold(note), note.id, note.subject, None,
None, '', note.newstatus, self.getNoteAttachmentIcon(note.scr, note.id)])
column.add_attribute(renderer, 'background', 0)
column.add_attribute(renderer, 'foreground', 1)
Now I want to set Bold attribute to Text in some lines.
1. Which attribute do I need to use:
column.add_attribute(renderer, <name_of_attribute>, 3)
And where can I find list of all available attributes?
2. How must I develop self.get_Bold() method?
self.get_Bold(self, note):
if(note.bolded()):
return <what>
else
return <what>
Thanks in advance,
Andrey
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/