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

I`m trying to run 2 different functions using thread together with a main 
script but when the script initiates the Java SE just stop working.
To analyze the problem I made a test script with just one thread and a simple 
function BUT i f you run the code, you will se that he just goes crazy (Opens a 
HUGE amount of pop ups) and doesn't wait the 2 seconds.
Code below:


import threading
import time

def trocador_conta():
    
    threading.Thread(target=trocador_conta).start() 
    #inicia o thread
    for x in range (1,3):
        popup ('Counter in:%d')%(x)
        time.sleep(2) #waits 2 seconds to popup again
print ('end trocador')

trocador_conta()


Someone has a idead of what is wrong?
Thank you, have a good day!

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to