-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
bpo-34829: Add missing selection_ methods to the Tkinter Spinbox #9617
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
Implement the methods selection_from, selection_range, selection_present and selection_to for Tkinter Spinbox.
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.
Please add tests, a news entry, a What's New entry, and add your name in Misc/ACKS.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
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.
Thank you @j4321. Would be nice to add also tests for existing selection methods and add the same or similar tests for the Entry widget.
Doc/whatsnew/3.8.rst
Outdated
Added methods :meth:`~tkinter.Spinbox.selection_from`, | ||
:meth:`~tkinter.Spinbox.selection_present`, | ||
:meth:`~tkinter.Spinbox.selection_range` and | ||
:meth:`~tkinter.Spinbox.selection_to`, |
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.
The last comma is redundant.
Please add also (Contributed by ...)
@@ -0,0 +1,3 @@ | |||
Add methods ``selection_from``, ``selection_range``, ``selection_present`` | |||
and ``selection_to`` to the ``tkinter.Spinbox`` for consistency with the | |||
``tkinter.Entry`` widget. |
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.
Please add Patch by ...
.
Seems there are whitespace issues in rst files. |
@serhiy-storchaka |
This looks like a bug. Please open a separate issue. |
Doc/whatsnew/3.8.rst
Outdated
in the :class:`tkinter.Spinbox` class. | ||
:meth:`~tkinter.Spinbox.selection_range` and | ||
:meth:`~tkinter.Spinbox.selection_to` | ||
in the :class:`tkinter.Spinbox` class (Contributed by Juliette Monsel). |
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.
Add a reference to the issue. Take other entries as a pattern.
Doc/whatsnew/3.8.rst.bak
Outdated
@@ -0,0 +1,401 @@ | |||
**************************** |
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.
Remove this file.
Misc/ACKS
Outdated
@@ -1837,3 +1837,4 @@ Jelle Zijlstra | |||
Gennadiy Zlobin | |||
Doug Zongker | |||
Peter Åstrand | |||
Juliette Monsel |
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.
And the last. Names in this list are in rough alphabetical order by last names. Move your name to the correct place.
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.
Sorry for all the mistakes and thanks for taking the time to point them out, I'll try to do everything right from the start next time.
Thank you for your contribution Juliette! Congratulate with your first commit to CPython! |
Add methods selection_from, selection_range, selection_present and selection_to to the Tkinter Spinbox
for consistency with the Entry widget.
https://bugs.python.org/issue34829