On Sat, 15 Jan 2005 17:18:25 +0000
"Gustavo J. A. M. Carneiro" <[EMAIL PROTECTED]> wrote:
[CODE]
> > But it is much slower than the ListStore solution :-/
> Even with fixed-height-mode turned on?
Yes.
> I was thinking that if
> TreeView would only ask for the items that fit in view, then you'd
> need to get less than 100 items at a time, instead of 400000, hence
> the speed improvement.
Yes but how can be achieved such a feature?
> So, something must be failing. I see you defined on_iter_n_children
> to always return 0. Are you sure about this?!
I used a to much simpliefied method, now I completed the method in this
way:
def on_iter_n_children(self, rowref):
if rowref:
return 0
return len(self.list)
to respect the description of iter_n_children ... but the code is still
to slooooooow.
And while it is building the model I receive this error sometimes:
** (xpn.py:3194): CRITICAL **: file pygtktreemodel.c: line 718
(pygtk_generic_tree_model_unref_node): assertion `VALID_ITER(iter,
tree_model)' failed
--
|\ | |HomePage : http://nem01.altervista.org
| \|emesis |XPN (my nr): http://xpn.altervista.org
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/