[pygtk] call set_label() periodically
Pietro Battiston
toobaz at email.it
Thu Aug 27 05:57:25 WST 2009
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
More information about the pygtk
mailing list