Perfect! Thank you!
Dave
Christian Robottom Reis wrote:
On Wed, Nov 05, 2003 at 01:11:46AM -0500, David Bernard wrote:
column.set_alignment(1)
treeview.append_column(column)
..and everything is ok but, I want to use this instead:
treeview.insert_column_with_attributes(-1, title, renderer, text=0)
..now how can I set the alignment? Thanks.
http://www.gnome.org/~james/pygtk-docs/class-gtktreeview.html#method-gtktreeview--insert-column-with-attributes
gtk.TreeView.insert_column_with_attributes
def insert_column_with_attributes(position, title, cell)
Returns: The number of columns in tree_view after insertion.
So:
i = treeview.insert_column_with_attributes(-1, title, renderer, text=0)
col = treeview.get_column(i-1) # column indexes start at zero
col.set_alignment(1.0)
Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331
|
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/