sort pygtk gtktreeview column containing dates

P

psaroudakis

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
 
J

Jan Vorwerk

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:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,150
Latest member
MakersCBDReviews
Top