[pygtk] Thread finish signal
Damián Nohales
damiannohales at gmail.com
Mon Dec 26 13:33:08 WST 2011
Hi there!
I have a thread that inherits from "threading.Thread", I want to reuse
the Thread implementation for different purposes but I want to execute
some different code when the Thread finish.
What is the best way to implement that? lambda functions, signal connection?
To clarify the situation, a code that I can come to expect can be:
...
thread = MyThread()
thread.connect('finished', self.my_callback)
thread.start()
...
Thanks!
More information about the pygtk
mailing list