Komodo problem with threading:
Hello,
I can't run this program:
def printtime(Max):
i = 0
while True:
time.sleep(1)
print time.ctime(time .time())
i+=1
if i==Max : break
pass
if __name__ == "__main__":
thread.start_ne w_thread(printt ime,(2,))
But it runs inside IDLE.
pujo
Hello,
I can't run this program:
def printtime(Max):
i = 0
while True:
time.sleep(1)
print time.ctime(time .time())
i+=1
if i==Max : break
pass
if __name__ == "__main__":
thread.start_ne w_thread(printt ime,(2,))
But it runs inside IDLE.
pujo