Main
contact
Projects/Proyectos
Papers/textos
Support Christine Media Player
FLOSS Projects
Categories
- Angry (54) [atom | rss]
- books (4) [atom | rss]
- christine (73) [atom | rss]
- Flickr (5) [atom | rss]
- FLOSS (216) [atom | rss]
- general (402) [atom | rss]
- general (5) [atom | rss]
- gnome (21) [atom | rss]
- GNU (21) [atom | rss]
- google (8) [atom | rss]
- gpkg (13) [atom | rss]
- gtk (57) [atom | rss]
- Humor (61) [atom | rss]
- ICTC (2) [atom | rss]
- Internet (37) [atom | rss]
- la-uno.com (2) [atom | rss]
- linux (63) [atom | rss]
- movies (7) [atom | rss]
- music (28) [atom | rss]
- novell (5) [atom | rss]
- personal (294) [atom | rss]
- php (6) [atom | rss]
- Pictures (81) [atom | rss]
- Python (95) [atom | rss]
- slackware (37) [atom | rss]
- Software_Development (152) [atom | rss]
- stuff (160) [atom | rss]
- Stupid things (80) [atom | rss]
- ubuntu (20) [atom | rss]
- Video (15) [atom | rss]
- WTF!! (1) [atom | rss]
Tiras
Poll
- What do you do in your spare time?
- Con que desarrollas interfaces graficas
- Cual es el mejor momento del dia para programar?
- A que empresa de software libre le dirias "Si, acepto..." ?
- Que sistema operativo utilizas?
- Que sistema de archivos utilizas
- En que programas?
Recent Comments
- Mario Que on Franklin CDU-680 en Slackware Linux
- Kbyte on My parents are comming to Salamanchester!
- markuz on Es bueno reciclar el papel?
- Cristian on Es bueno reciclar el papel?
- markuz on Keep going
- lopz on Keep going
- gian on Ironman
- markuz on Es bueno reciclar el papel?
- gdesanti on Es bueno reciclar el papel?
- spooky on Home workplace
Es facil, al inicio de tu aplicacion tendras que inicializar los threads, que son algo asi:
gtk.gdk.threads_init()
Esto lo tendras que hacer antes de iniciar algun thread. Y luego, al usar algun thread debes englobarlo dentro de
gtk.threads_enter()
thread.start_new(funcion, (arg1,arg2,argN))
gtk.threads_leave()
thread.start_new(funcion, (arg1,arg2,argN))
gtk.threads_leave()
Solo recuerda que no debes manipular gtk fuera del thread en el que esta corriendo el ciclo principal (gtk.main_loop).
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.
Trackback URI: http://islascruz.org/html/index.php?Blog/Trackback/id/526
Leave a Comment
Online Visitors:6
Today Visitors:156
Total Visitors:69240




