[pygtk] [TreeViewColumn] - Set bold font
Demidov Andrey
andrey.demidov at gmail.com
Thu Nov 13 19:25:17 WST 2008
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20081113/912ac413/attachment.htm
More information about the pygtk
mailing list