On Wed, Nov 05, 2003 at 03:51:05PM -0600, Jeffrey C. Ollie wrote: > I'm implementing a custom TreeModel to display the contents of a large > debug file. Things are working very well, except that when the model is > first assigned to the view, the view walks through every row in the > model before displaying! This makes the initial display very slow!
I'm wondering what version of GTK+ you are using. Kris has implemented a number of improvements to TreeView, but I'm not sure if you need the latest 2.2 or 2.3.0 to check them out. Anyway, that at least is worth a try. The other thing you could consider is speeding up access to the model itself -- does your profiler tell you anything interesting? > very fast. I wrote the custom TreeModel to avoid reading & parsing > every line in the file until the line actually needed displaying. Is > this the normal behavior of a TreeView or is there a bug somewhere? I think the reason for reading all the lines was calculating how high each row should be; I remember someone discussing a solution to this, but I'm not sure what the current situation is. Take care, -- Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
