On Wed, Oct 28, 2009 at 4:33 PM, Petsas Athanasios <pet...@csd.uoc.gr> wrote:
> Hello,
>
> I have one more question on the use of the treeview with a listStore model.
> When I want to append a big amount of rows, for instance 100, the appeend
> method it is extremely slow inside a loop..
>
> I tried to use this code:
>
> treeview.freeze_child_notify()
> treeview.set_model(None)
>
> # Add rows to the model
> # ...
>
> treeview.set_model(model)
> treeview.thaw_child_notify()
>
> from taken from this page:
> http://faq.pygtk.org/index.py?req=show&file=faq13.043.htp
> but it's still slow!

Appendiing 100 rows should be fast. The only thing I can think of that
would make this noticeably slow is if the ListStore is sorted, in
which case you should disable sorting while doing the appends.

-- 
Neil Muller
drnlmul...@gmail.com

I've got a gmail account. Why haven't I become cool?
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to