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

    Status: Open => Answered

RaiMan proposed the following answer:
-- TypeError: snooze_alarm() takes no arguments (1 given)
Since the observe is threaded/subprocessed, you get 2 independent errors. This 
is the first one:
the observe handler functions are dynamically called with the event object as 
parameter, but you don't have defined a parameter in your handler function. So 
I guess the popup is not clicked away and in your main workflow you get the 
FindFailed.

# correct handler definition:
def snooze_alarm(e):
    print "in snooze_alarm"
    v.click("home.png")

-- If you are running this in IDE
I do not really know, what is happening to the observer in case of errors like 
you had. So to be clean you should edit your script in the IDE, but run it form 
command line.

You received this question notification because you are a member of
Sikuli Drivers, which 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