mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-33289: Return RGB triplet of ints instead of floats from tkinter.colorchooser (GH-6578)
This commit is contained in:
parent
805ede8ae8
commit
6713e869c4
5 changed files with 94 additions and 30 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue