On Thu, May 26, 2005 at 04:13:20AM -0400, Jody Steele wrote:
> for i in data:
>   row = (i,data[i].size_str(),data[i].date)
>   self.iter = self.list.append(row)

Has a sort_column_id been set before this point (well, it would have to be
if you are reusing the store)?  According to the tutorial

"Once a sort column ID has been set on a TreeModel implementing the
TreeSortable interface it cannot be returned to the original unsorted state.
You can change the sort function or use a default sort function but you
cannot set the TreeModel to have no sort function."

A costly sort func could be causing the slow down.  You might try creating a
trivial default sort func like

sort_func = lambda *args: 0

And setting that before appending rows.  Or perhaps just throwing the model
away after each use?

Dave Cook
_______________________________________________
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