← Back to team overview

sikuli-driver team mailing list archive

[Question #261417]: TypeError 'NoneType' object is not callable when use observe()

 

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

def MyPrint(MyString):
    print "Now system is in:", MyString

reg1=Region(Screen(1))
reg1.onAppear("GeneralSettings-1.png",MyPrint("In General"))
reg1.observe(50,False)

system display [error] TypeError ( 'NoneType' object is not callable ) after running.

And if I change as reg1.observe(50,True), no such error but script seems not working correctly, MyPrint is execute even no "GeneralSettings-1.png" display


-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.