Code: Select all
def wait_tim(timed):
counter = 0
done = False
while not done:
time.sleep(1)
counter += 1
if counter > timed:
break
def wait_time(timedd):
threading.Thread(target= wait_tim, args=(timedd)).start()
Code: Select all
def wait_tim(timed):
counter = 0
done = False
while not done:
time.sleep(1)
counter += 1
if counter > timed:
break
def wait_time(timedd):
threading.Thread(target= wait_tim, args=(timedd)).start()