sort pygtk gtktreeview column containing dates
Jan Vorwerk
jan.vorwerk at cretin.fr
Mon Jul 2 15:05:15 EDT 2007
Hi,
I did something similar already in wxPython, but not yet in PyGTK.
Therefore I cannot provide the actual solution... Since noone answered,
I will still give you a hint :
http://www.pygtk.org/pygtk2tutorial/sec-TreeModelInterface.html
See 14.2.9. Sorting TreeModel Rows
and
set_sort_func(sort_column_id, sort_func, user_data=None)
Good luck!
Jan
psaroudakis a écrit , le 27.06.2007 16:28:
> Hello... I have been trying to sort a gtktreelist column that contains
> dates in the following format:
>
> eg: 01-Jan-1993
> 12-Dec-1992 etc
>
> i don't seem to be able to find any other solution than using dates in
> the format "YYYY-MM-DD" which is something i am trying to avoid..
>
> Is there something very trivial that I am missing/overlooking? any
> suggestions?
>
> Thanks,
>
> Nik
>
> Disclaimer: I am very new to Python and Pygtk
>
More information about the Python-list
mailing list