[pygtk] problem with listStore append in a treeview
Petsas Athanasios
petsas at csd.uoc.gr
Wed Oct 28 22:33:24 WST 2009
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!
Is there any other technique that may can help me?
Another widget instead of treeview maybe?
I just only want to have a list with rows that I can
make some actions by double clicking on them.
Thank you in advance,
Thanasis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20091028/a3266850/attachment.htm
More information about the pygtk
mailing list