[pygtk] TreeView/CellRenderText and numbers

Dieter Verfaillie dieterv at optionexplicit.be
Fri Oct 14 01:58:12 WST 2011

On 12/10/2011 13:21, Olaf Devik wrote:
> Thanks to both replies. Info from Dieter did the trick, the critical 
> line was intcolumn.add_attribute(cell,'text',1).
> I tried to set same trough use of 
> gtk.TreeView.insert_column_with_attributes, which was ok for the columns 
> with string, but failed when an integer was required. When that failed, 
> my confusion went to a high level.

Ah yes, insert_column_with_attributes also works (and even
saves a bit of typing). See attachment :)

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: treeview_columns.py
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20111013/cbe0fa8e/attachment.ksh>

More information about the pygtk mailing list