sort pygtk gtktreeview column containing dates

Jan Vorwerk jan.vorwerk at
Mon Jul 2 21:05:15 CEST 2007


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 :

See 14.2.9. Sorting TreeModel Rows
set_sort_func(sort_column_id, sort_func, user_data=None)

Good luck!

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