hi
i make plugin and i wan't to use thread
i do from threading import *
for example
class Affiche(threading.Thread):
def __init__(self, nom = ''):
threading.Thread.__init__(self)
self.nom = nom
self.Terminated = False
def run(self):
i = 0
while not self.Terminated:
print self.nom, i
i += 1
time.sleep(2.0)
print "le thread "+self.nom +" s'est termine proprement"
def stop(self):
self.Terminated = True
a = Affiche('Thread A')
a.start()
when i do that error threading is not defined
Help me please
thanks