Is the gtk.gdk.lock unnecessary? My understanding is that if you use timeout_add the callback will happen as an event in the mainloop. ie. it won't happen spontaneously in the middle of some other code unless gtk.main_iteration() is explicitly called.
So wouldn't calling gc.collect() from the callback without the lock server the same purpose, or am I misunderstanding something? Laszlo 2009/3/8 Tim Evans <[email protected]>: > > For a rather brute-force hack, you can do this: > > import gtk, gobject > import gc > > gc.disable() > def collect(): > with gtk.gdk.lock: > gc.collect() > return True > gobject.timeout_add_seconds(10, collect) > > Not a long-term solution, but it gets your software working. > > -- > Tim Evans > Applied Research Associates NZ > http://www.aranz.com/ > _______________________________________________ > pygtk mailing list [email protected] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://faq.pygtk.org/ > _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
