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

suggested improvement on api.SetRectangle input #352

Open
herrxyz opened this issue Jun 23, 2024 · 1 comment
Open

suggested improvement on api.SetRectangle input #352

herrxyz opened this issue Jun 23, 2024 · 1 comment

Comments

@herrxyz
Copy link

herrxyz commented Jun 23, 2024

suggestion: api method SetRectangle take tuple as alternative input

crop = (1,2,3,4)
(left, top, width, height) = crop
works:
api.SetRectangle(left, top, width, height)
breaks:
api.SetRectangle(crop)

using current version 2.5.2 from conda-forge

@sirfz
Copy link
Owner

sirfz commented Jun 24, 2024

You can api.SetRectangle(*crop)

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

2 participants