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 <[email protected]>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   [email protected]
> 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
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to