Re: [pygtk] Threading Question

2010-06-28 Thread Tim Evans
On 2010-06-27 10:59, Brian Rowlands (Greymouth High School) wrote: > a) What does putting gtk.main() between gtk.gdk.threads _enter & > gtk.gdk.threads _leave actually do? If you've initialised threads (the gtk.gdk.threads_init) call, then gtk.main() and any other function that might modify a win

[pygtk] Threading Question

2010-06-26 Thread Brian Rowlands (Greymouth High School)
Got some help last week in regard to a problem which put me on the trail of understanding threading. Through reading and playing around I've this working example. What I don't understand are how certain parts of it work. BTW, I'm working on a windows PC. import threading import random, time import