-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
bpo-33289: Return RGB triplet of ints instead of floats from tkinter.colorchooser #6578
Conversation
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.
Docstrings look excessive verbose.
Any chance of writing tests for the color chooser?
The color chooser invokes the show() method which automatically displays the dialog. I couldn't figure out how to automate the test to click 'ok' or 'cancel' since I wasn't defining those myself. What's the best way to interact with that kind of dialog window? |
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 |
@csabella, do you mind to add a simple test as @terryjreedy required? I don't like tests that depend on implementation details, but here we don't have other way. |
I have made the requested changes; please review again. |
Thanks for making the requested changes! @terryjreedy: please review the changes made to this pull request. |
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.
Running test_tk runs the two ChooserTests. They pass and look complete. Anything else is up to Serhiy.
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 |
This comment has been minimized.
This comment has been minimized.
|
On tracker msg385400 (today, on the bpo issue) I give preliminary experimental results and speculations about the test failures. I necessary, I will add some temporary debug prints to the tests. |
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Thanks @csabella for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9. |
Sorry, @csabella and @serhiy-storchaka, I could not cleanly backport this to |
Sorry @csabella and @serhiy-storchaka, I had trouble checking out the |
GH-24318 is a backport of this pull request to the 3.9 branch. |
…inter.colorchooser (pythonGH-6578). (cherry picked from commit 6713e86) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
…inter.colorchooser (pythonGH-6578). (pythonGH-24318) (cherry picked from commit 6713e86) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com> (cherry picked from commit 3d5434d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
https://bugs.python.org/issue33289