Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError - grow() #178

Open
Daniwin82 opened this issue Oct 20, 2021 · 0 comments
Open

TypeError - grow() #178

Daniwin82 opened this issue Oct 20, 2021 · 0 comments

Comments

@Daniwin82
Copy link

Daniwin82 commented Oct 20, 2021

my code:
newregion = r.grow(r.x,r.y,300,10)

error:
TypeError: grow() takes from 2 to 3 positional arguments but 5 were given

accoring to the docs the last option of grow allows 4 arguments
https://lackey.readthedocs.io/en/latest/lackey.html#lackey.Location.grow

Lackey code: seems to expect only 2 argument:
def grow(self, width, height=None):

Either the code or the documentation needs updating...

NOTE: I prefer the grow method to accept 4 argument (left, right, top, bottom),...since I used it in this way in my previous sikuli scripts. OR Is there an alternative to grow a region only in one direction? So, something like grow(0,200,0,0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant