← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #432000]: Threading problem (doesn`t respect wait or time.sleep)?

 

Question #432000 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/432000

    Status: Open => Answered

RaiMan proposed the following answer:
def trocador_conta():
    for x in range (1,3):
        popup ('Counter in:%d')%(x)
        time.sleep(2) #waits 2 seconds to popup again
    print ('end trocador')

threading.Thread(target=trocador_conta).start() #inicia o thread

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.