Re: R: GtkTreeView and row separator?
- From: "David M. Cook" <dave davidcook org>
- To: gtk-app-devel-list gnome org
- Cc: "David M. Cook" <dave davidcook org>
- Subject: Re: R: GtkTreeView and row separator?
- Date: Tue, 29 Jul 2003 05:26:32 -0700
On Tue, Jul 29, 2003 at 04:54:56AM -0700, David M. Cook wrote:
[..., 5, "red", 6, "blue"]
[..., 5, "blue", 6, "red"]
Then when adding your columns, even cells get their background from column
5 and odd ones from 6 and vice-versa for foreground:
for i in range(ntreeviewcols):
...
treeview.addcolumn(colname, cell, ..., cell_background=5+i%2,
foreground=6-i%2)
I actually tried this, and it works well for a list, but for a tree it looks
ragged in the first column, I think because of the expanders.
The other issue is what to do when inserting or deleting a row. You'd have
to update the store for every row after that one.
Dave Cook
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]