This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Bryan.Oakley, serhiy.storchaka, terry.reedy
Date 2018-04-21.07:35:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1524296156.31.0.682650639539.issue33289@psf.upfronthosting.co.za>
In-reply-to
Content
Good catch! A color tuple will likely be used in '#%02x%02x%02x' % color, and this will fail because %x works only with integers (in general sense). Therefore returning a tuple of floats is a bug.

The downside is that we loss some information. Tk supports up to 16 bit per color component, and askcolor() keeps only higher 8 of them. This can't be changed for backward compatibility, but it may be worth to add an option for control the representation of the result. winfo_rgb() returns 16-bit color components. This is a separate issue.
History
Date User Action Args
2018-04-21 07:35:56serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, Bryan.Oakley
2018-04-21 07:35:56serhiy.storchakasetmessageid: <1524296156.31.0.682650639539.issue33289@psf.upfronthosting.co.za>
2018-04-21 07:35:56serhiy.storchakalinkissue33289 messages
2018-04-21 07:35:55serhiy.storchakacreate