-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Allow PolygonSelector points to be removed #19660
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
Conversation
bbd648d
to
11e69e5
Compare
11e69e5
to
4c4f33a
Compare
if self._nverts <= 2: | ||
# If only one point left, return to un-complete state to let user | ||
# start drawing again | ||
self._polygon_completed = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should add a test for this.
4c4f33a
to
ed2ab4b
Compare
Thanks for the review. I've:
|
d09cffa
to
0554f6e
Compare
@jklymak was this marked as a draft because it needed a rebase (now done), or is there something else? |
Just the rebase. When looking at old PRs it is easy to hit "draft:false" in the search terms. It is not easy to put "not:label" for the 10 labels that indicate author action needed. |
👍, just checking |
... when you clear the "needs rebase" totally feel free to move back to "Ready for Review". Its just a way to keep things off the radar until the author has cleared the issue. Our PR backlog is still too big for this to be super effective, but I go through once a week or so and try and sort another dozen or so. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't test this, but looks good, and @QuLogic seemed to do a thorough review...
PR Summary
This allows one to remove individual points of a
PolygonSelector
by right-clicking on them (mouse button 3).PR Checklist
pytest
passes).flake8
on changed files to check).flake8-docstrings
and runflake8 --docstring-convention=all
).doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).