← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #197294]: Can Sikuli Methods be Overridden?

 

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

    Status: Open => Answered

j proposed the following answer:
I would suggest something like this:

import sikuli.Sikuli as sikuli    # import sikuli manually to get access
to the original methods

def click(img):
    # do custom stuff
    sikuli.click(img) # execute sikuli original method

click("img.png") # should now execute custom click command

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