in my project i have a class of threading.Thread like this:
class MakeHtml(threading.Thread):
def __init__(self, *rstext):
self.outhtml = [x for x in rstext]
self.retval = ''
threading.Thread.__init__(self)
def run(self):
...do something
in another file i call, every 10 seconds MakeHtml class
t = MakeHtml(mrr1, mrr2, mrr3, mrr4)
for create a thread but in this way i see that the thread is the same every time.
I need a new thread every time i call the MakeHtml Threading class, how can i do this?
Thanks in advance