I found the problem. It turns out that the real problem was that the application quit callback was connected to the 'destroy' event of the main window, when it should have been connected to the 'delete' event. I'm not sure exactly the difference between the two, but connecting to 'delete-event' gets me a much faster exit.
John On Fri, 2010-11-12 at 17:51 +0100, Alessandro Dentella wrote: > On Fri, Nov 12, 2010 at 07:17:41AM -0700, John Haiducek wrote: > > > I display foreign key picking data from the related table so that loading > > > data is somehow slowed down (2-10 seconds for 10.000 records depending on > > > foreign keys). Destroying this table is done almost immediately, you don't > > > perceive any significant delay. > > > > > > I'm testing it on Ubuntu 10.04 running on a notebook 1.8 GHz centrino. > > > > Do you know what TreeModel Sqlkit uses? Is it a gtk.ListStore, or > > something custom? Perhaps the delay for me is in destroying the > > ListStore rather than the table. > > Sqlkit can use eather modelstores, I tested it with ListStore. By the way my > notebook is a simple old single core... > > It shouldn't be very difficult to setup a test in which you just create a > TreeView + ListStore w/o anything else. > > sandro > *:-) > > _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
