mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
[3.9] bpo-33289: Return RGB triplet of ints instead of floats from tkinter.colorchooser (GH-6578). (GH-24318)
(cherry picked from commit 6713e869c4
)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
This commit is contained in:
parent
ff06957710
commit
3d5434d5cb
5 changed files with 103 additions and 27 deletions
|
@ -1160,8 +1160,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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue