Hi,
Mnay thanks for prompt help to my last query, seems to
have helped a great deal. I have one remaining question/problem...
I fork and create a child process that uses a pipe to send
data to the parent. The parent has done an
input_add(myPipeIn, GDK.INPUT_READ|GDK.INPUT_EXCEPTION, pipe_handler)
so that anything written to the pipe triggers pipe_handler().
pipe_handler is real simple ....
def pipe_handler(win,*args):
ndx = os.read(myPipeIn,64)
text.insert (title,text.fg,text.bg,' Starting subscriber
'+str(ndx)+'\n' )
Problem is the GtkText display is messed up. If I introduce a small
delay between the child writes to the pipe all is well (e.g0.1 second)
I thought this was due to nested calls to pipe_handler() but used
mutex's to avoid this so it must be to do with text.insert(....).
Any ideas on this, I can work with the delay but this is basis for
a large scaling app and I don't want to slow it down any more than
I have to or it will take too long to start....
Thanks again, my initial impressions of PyGtk are excellent, takes
a lot of the pain out of GUI development...
Martin Dunford
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk