[pygtk] How can I modify widgets from a forked process?

Alexandre González alex at rianxosencabos.com
Sun May 31 07:18:57 WST 2009


Do you like to use fork()? Perhaps you must use threads, because the threads
shared the variables, but with fork you must use shared memory or something
similar to access to same widgets. I'm saying this because C programming,
but I don't know how is implemented the forks and thread threatment at
python.

Excuse my english.

On Sun, May 31, 2009 at 01:00, Link Master <linkmaster032000 at gmail.com>wrote:

> How can I modify widgets from a forked process (through os.fork)? This is
> what I currently which does not work:
>
> self.pid = os.fork()
> if self.pid == 0:
>     self.start.set_label("Start")
>     self.hours.set_sensitive(True)
>     self.minutes.set_sensitive(True)
>     self.seconds.set_sensitive(True)
>     self.message.set_sensitive(True)
>
>
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>



-- 
Please, don't send me files with extensions: .doc, .docx, .xls, .xlsx, .ppt
and/or .pptx
http://mirblu.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090531/937d8b52/attachment.htm 


More information about the pygtk mailing list