Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79949 > unrolled thread
| Started by | "ast" <nomail@invalid.com> |
|---|---|
| First post | 2014-10-30 12:23 +0100 |
| Last post | 2014-10-31 08:05 +0100 |
| Articles | 4 — 4 participants |
Back to article view | Back to comp.lang.python
Has color "Green" changed from Python 33 to 34 ? "ast" <nomail@invalid.com> - 2014-10-30 12:23 +0100
Re: Has color "Green" changed from Python 33 to 34 ? Peter Otten <__peter__@web.de> - 2014-10-30 13:20 +0100
Re: Has color "Green" changed from Python 33 to 34 ? Terry Reedy <tjreedy@udel.edu> - 2014-10-30 13:57 -0400
Re: Has color "Green" changed from Python 33 to 34 ? Christian Gollwitzer <auriocus@gmx.de> - 2014-10-31 08:05 +0100
| From | "ast" <nomail@invalid.com> |
|---|---|
| Date | 2014-10-30 12:23 +0100 |
| Subject | Has color "Green" changed from Python 33 to 34 ? |
| Message-ID | <54521fa1$0$2040$426a74cc@news.free.fr> |
Hi I just updated this morning my Python from a 3.3rc to 3.4 (Windows) and I noticed that the 'Green' color in tkinter GUI is not the same at all. 'Green' in 3.4 is very dark. I had to replace it with 'Lime' to get back a nice 'Green'.
[toc] | [next] | [standalone]
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Date | 2014-10-30 13:20 +0100 |
| Message-ID | <mailman.15317.1414671672.18130.python-list@python.org> |
| In reply to | #79949 |
ast wrote: > I just updated this morning my Python from a 3.3rc to 3.4 > (Windows) and I noticed that the 'Green' color in tkinter > GUI is not the same at all. > > 'Green' in 3.4 is very dark. I had to replace it with 'Lime' to > get back a nice 'Green'. More likely the color is defined by tcl/tk rather than Python, and your Python installations use different versions of tcl. Searching for 'tcl/tk color definitions' finds <http://wiki.tcl.tk/1424> with the following statement """From Tcl/Tk 8.6 on, Tk uses Web colours instead of X11 ones, where they conflict. """ and according to <http://en.wikipedia.org/wiki/X11_color_names#Clashes_between_web_and_X11_colors> "green" is indeed one of the affected colors.
[toc] | [prev] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2014-10-30 13:57 -0400 |
| Message-ID | <mailman.15329.1414691864.18130.python-list@python.org> |
| In reply to | #79949 |
On 10/30/2014 8:20 AM, Peter Otten wrote: > ast wrote: > >> I just updated this morning my Python from a 3.3rc to 3.4 >> (Windows) and I noticed that the 'Green' color in tkinter >> GUI is not the same at all. >> >> 'Green' in 3.4 is very dark. I had to replace it with 'Lime' to >> get back a nice 'Green'. > > More likely the color is defined by tcl/tk rather than Python, and your > Python installations use different versions of tcl. > Searching for 'tcl/tk > color definitions' finds <http://wiki.tcl.tk/1424> with the following > statement > > """From Tcl/Tk 8.6 on, Tk uses Web colours instead of X11 ones, where they > conflict. > """ 3.4 switched from 8.5 to 8.6 > and according to > <http://en.wikipedia.org/wiki/X11_color_names#Clashes_between_web_and_X11_colors> > "green" is indeed one of the affected colors. -- Terry Jan Reedy
[toc] | [prev] | [next] | [standalone]
| From | Christian Gollwitzer <auriocus@gmx.de> |
|---|---|
| Date | 2014-10-31 08:05 +0100 |
| Message-ID | <m2vcb7$tqp$1@dont-email.me> |
| In reply to | #79949 |
Am 30.10.14 12:23, schrieb ast: > I just updated this morning my Python from a 3.3rc to 3.4 (Windows) and > I noticed that the 'Green' color in tkinter GUI is not the same at all. > > 'Green' in 3.4 is very dark. I had to replace it with 'Lime' to > get back a nice 'Green'. If you are dependent on the exact RGB value, just use a hex triplet, this will be passed unmodified to the OS and never change. A 100% green would be '#00FF00'. Note that still the OS may choose to apply color profiles etc. to this color, but this is outside of the control of the application. Christian
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web