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
KEP: allow tuple/list coordinates for Line.points #3481
Comments
Thanks for suggesting this officially. I would think most use-cases in kivy for Line points would be tuples or something similar, like widget.pos, widget.center. Is there a use case where a list of x, y, x, y makes more sense? |
I'd like to work on this issue! Could you tell me where to start ? |
I made the change suggested by @kived and tried testing it using the When I run the example as it is, it works. But when I change the points declaration to this
it shows error:
I dont know whats wrong and what float is required? Does it mean that the elements in the list (coordinate values) should be float, but it is getting a tuple? (which would mean the change isn't working). Please help! |
Fix for issue kivy#3481 Line.points can be defined as list of lists, tuples and coordinates (float values) setter method modified to check each element of the argument list and append it to self._points accordingly Line example file /examples/canvas/line.py updated with the new possible way of defining points
Fixed in #3866. |
Could be handled at assignment time.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: