[pygtk] app freeze problem

Hussein Vastani hvastani at vt.edu
Sat Apr 1 06:55:37 WST 2006


Hello All, 
In my program I have gobject.io_add_watch waiting on a receive socket and a 
callback passed to it as parameter which gets called when ever some data 
arrives on that socket. 
Now the problem is that the data is arriving at a very fast rate. say 60 to 
100 times a second. My callback gets called successfully and in my callback I 
parse this data and display it on a treeview ( using store.set_value() method 
).
My callback is not long and computational but my treeview does not display the 
data and my application becomes unresponsive. 
Any suggestions on handling this scenario? I tried handle_pending_events but 
that did not help much ( i guess coz i have soo many io events pending )

Any help is appreciated
Thanks

Hussein Vastani




More information about the pygtk mailing list