bpo-33289: Return RGB triplet of ints instead of floats from tkinter.colorchooser (GH-6578)

This commit is contained in:
Cheryl Sabella 2021-01-21 14:14:04 -05:00 committed by GitHub
parent 805ede8ae8
commit 6713e869c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 94 additions and 30 deletions

View file

@ -1185,8 +1185,7 @@ class Misc:
self.tk.call('winfo', 'reqwidth', self._w))
def winfo_rgb(self, color):
"""Return tuple of decimal values for red, green, blue for
COLOR in this widget."""
"""Return a tuple of integer RGB values in range(65536) for color in this widget."""
return self._getints(
self.tk.call('winfo', 'rgb', self._w, color))