Message315555
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. |
|
Date |
User |
Action |
Args |
2018-04-21 07:35:56 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, terry.reedy, Bryan.Oakley |
2018-04-21 07:35:56 | serhiy.storchaka | set | messageid: <1524296156.31.0.682650639539.issue33289@psf.upfronthosting.co.za> |
2018-04-21 07:35:56 | serhiy.storchaka | link | issue33289 messages |
2018-04-21 07:35:55 | serhiy.storchaka | create | |
|