Danny Milosavljevic <[EMAIL PROTECTED]> writes:

> Am Mit, den 21.07.2004 um 16:41 Uhr -0500 schrieb Doug Quale:
> [...]
> > Since my column sizing concerns seem to be a non-issue, now I think
> > getting the sort info is hard.  It might require connecting to column
> 
> Sort Info ? By Code ?
> 
> model.get_sort_column_id() returns: (column_id, sort_order) [for example
> gtk.SORT_DESCENDING]

Thanks.  Obviously I didn't check this very thoroughly before posting.
I made two poorly researched posts in a row!

> 
> I don't know if sort order on *multiple* columns is possible. It
> certainly would be useful, if implicitly applied (i.e. it sorts by the
> sort column, for equal cells it sorts by the column following the sort
> column, and so on)... but maybe someone else can shed a light.

Multiple sort columns have been suggested before.  One problem is that
it isn't clear how to indicate the sort columns.  The simple arrow is
a good indicator for the primary sort column, but what to do with the
rest?  You also need some way to select multiple sort columns versus
replacing the existing sort with a sort on a single column.  For
sorting on multiple columns I like the idea of using a popup menu.  It
could also be used to control column visibility.

Actually I'd be happy with a smaller goal: If the default sorts were
guarranteed to be stable (rows with equal values of the sort column
remain in the input order) this would allow you to select sort
columns in reverse order and get the effect of multiple sort columns.
Unfortunately this doesn't work in gtk+.
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to