observe() return TypeError: NoneType object is not callable

Asked by Tim

Code:
OnAppear(screen-shot, TriggerEvent)
observe(20, FALSE)

will result in an error after 2 seconds with: "TypeError: 'NonType object is not callable'"

What is it I am doing wrong?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Tim
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

How did you define the handler TriggerEvent ?

Revision history for this message
Tim (0tim0) said :
#2

TriggerEvent is defined as:

"def TriggerEvent(event):"

Revision history for this message
Tim (0tim0) said :
#3

i do not know what exactly is different but it works now. i think something with multiple open sikuli-ide's