Question #263462 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/263462
Status: Open => Answered
RaiMan proposed the following answer:
thanks for the finding:
of course the docs are wrong, sorry.
Since the callback is expected to be an instance method, the first parameter
has to be a placeholder for the instance (usually one uses self).
hence it must read:
# a wrapper class is needed for the callback function (name it as you want)
class myLogger():
# a callback function (name it as you want)
# you might have more than one for specific handling of message groups
def callback(self, message):
print message
I will correct the docs.
--
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