[New-bugs-announce] [issue33289] askcolor is returning floats for r, g, b values instead of ints
Bryan Oakley
report at bugs.python.org
Mon Apr 16 17:49:41 EDT 2018
New submission from Bryan Oakley <bryan.oakley at gmail.com>:
Even though the underlying tcl/tk interpreter is returning ints, askcolor is converting the values to floats. My guess is this is an oversight related to the change in functionality of the / operator in python3.
this:
return (r/256, g/256, b/256), str(result)
should probably be this:
return (r//256, g//256, b//256), str(result)
----------
components: Tkinter
messages: 315367
nosy: Bryan.Oakley
priority: normal
severity: normal
status: open
title: askcolor is returning floats for r,g,b values instead of ints
versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33289>
_______________________________________
More information about the New-bugs-announce
mailing list