Il giorno gio, 27/08/2009 alle 01.30 +0430, saeed ha scritto: > >... and if it happens (usually to accomplish operations which take much > >time to execute and would freeze the GUI) > > When a function takes a sensible time to execute, to prevent GUI from > freezing, we can do frequently(mostly in the loop that takes time): > > while gtk.events_pending(): > gtk.main_iteration_do(False) > > No need to manual multithreading only for this reason.
In my experience, what took time was principally: - thumbnailing pictures/video, - retrieving and sending (big) things via Internet/bluetooth operations which are in a certain sense "atomic" (a single library call)... and long. (or did I misunderstand you?) Pietro _______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/