|
|
|
|||||||||||
PyGTK y ThreadsApril
10
Es facil, al inicio de tu aplicacion tendras que inicializar los threads, que son algo asi:
gtk.gdk.threads_init()
gtk.threads_enter() thread.start_new(funcion, (arg1,arg2,argN)) gtk.threads_leave() Si lo que necesitas es estar cachando informacion en un thread aparte y modificar la interfaz (ej. Leyendo un socket y mostrando informacion de cuanto llevas leido) entonces usa alguna bandera y modifica tu apariencia en el thread principal, de lo contrario tendras problemas con gobject y glib.
Comment XML feeds: RSS | Atom
|
|
Recent Comments On BlogMarco Antonio Islas Cruz on Marco Antonio Islas Cruz on Marco Antonio Islas Cruz on Getting ready Marco Antonio Islas Cruz on Python: Create win32 services using Python and py2exe jopython@gmail.com on Python: Create win32 services using Python and py2exe yodenuevo on Holy Shit! markuz on Holy Shit! yo on Holy Shit! Gustavo on Things that happen last week Marco Antonio Islas Cruz on Christine: rola_christine.py |
|||||||||
|
|
|||||||||||
Leave a Comment