On Thursday 16 October 2003 02:19 pm, Alex Roitman wrote: > On 2003.10.16 Don Allingham wrote: > > I have a TreeView that can contain hundreds to thousands of entries. It > > can take 60 seconds or more to enter data into the tree. However, if > > sorting was never enabled, it takes under 2 seconds. > > > > Is there a way of temporarily disabling sorting while data is being > > entered, and the reenabling sorting after the data has been entered? > > I'd be very intersted to know the answer to that same question. > > Can anybody with the clue help us out here? > > Thanks in advance, > Alex
There's always the option of just eliminating the whole data entry phase completely. The TreeStore which accepts data entry one item at a time is only one possible implementation of the abstract TreeModel class. Presumably your hundreds to thousands of entries are stored in some structure of you own. You can, perhaps, leave the data as you have it and build a TreeModel class around it. This model then represents the data as you like it, sorts or not as you choose, and answers all sorts of TreeModel queries put forth by the TreeView in its display of the TreeModel. Hope that's helpful, Gary Herron _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
