With a lot of help from ihatehippies I got threads working yesterday. Now I need to stop 'em! More specifically I want to stop a second thread starting until the first has finished.. This is what I have in my threading class at the moment:
class ProcessThread(Thread):
"""Test Worker Thread Class."""
#----------------------------------------------------------------------
def __init__(self, args):
self.args = args
"""Init Worker Thread Class."""
Thread.__init__(self)
self.start() # start the thread
#----------------------------------------------------------------------
def run(self):
os.system(self.args)
wx.CallAfter(Publisher().sendMessage, "update", "Processing completed")
Any thoughts most welcome. Thanks.