is it possible to do this? set_compare_func doesn't seem to be implemented.

at the moment my idea is to use the code below, doing a full freeze() / sort
(respecting all of the GTK settings if possible) / thaw(). I'm trying to write a 
file manager, and thus want directories to be separate from the files...

class GtkCListSortable(GtkCList):

     def __init__(self, num_cols, names):

         self.compare_func = 0

         GtkCList.__init__(self, num_cols, names)

     def sort(self):

         if self.compare_func != 0:      print "do a custom sort here"
         else:                           GtkCList.sort(self)

     def set_compare_func(self, func):

         self.compare_func = func

Maybe someone has done somthing similar already?

I'm not subscribed to the list, sorry, so please CC replies to me as well as to 
the list :)

ali.

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to