[issue44254] Change turtledemo button colors

2021-05-29 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 9bcb76c24f6d3f01e596a439c1521f9099e3fe80 by Miss Islington (bot) 
in branch '3.9':
bpo-44254: On Mac, remove disfunctional colors from turtledemo buttons 
(GH-26448)
https://github.com/python/cpython/commit/9bcb76c24f6d3f01e596a439c1521f9099e3fe80


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44254] Change turtledemo button colors

2021-05-29 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset addd32986f703e692463828ac0014023a901010f by Miss Islington (bot) 
in branch '3.10':
bpo-44254: On Mac, remove disfunctional colors from turtledemo buttons 
(GH-26448)
https://github.com/python/cpython/commit/addd32986f703e692463828ac0014023a901010f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44254] Change turtledemo button colors

2021-05-29 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset af5a324843de395cecc562cb0c757b3768f2077f by Terry Jan Reedy in 
branch 'main':
bpo-44254: On Mac, remove disfunctional colors from turtledemo buttons 
(GH-26448)
https://github.com/python/cpython/commit/af5a324843de395cecc562cb0c757b3768f2077f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44254] Change turtledemo button colors

2021-05-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25044
pull_request: https://github.com/python/cpython/pull/26450

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44254] Change turtledemo button colors

2021-05-29 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +25043
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/26449

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44254] Change turtledemo button colors

2021-05-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I picked a bluish green that works on both white and black on Windows.  Test is 
you can and wish.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44254] Change turtledemo button colors

2021-05-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Of course, I cannot set the background on my Mac, so I will test on Windows and 
let you verify on dark theme mac

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44254] Change turtledemo button colors

2021-05-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I presume you tested pr_26448.  If default colors do not work, that is on 
tcl/tk.  I suspect 8.6.11 is not prepared for dark theme.  The underlying bug 
is ignoring the tk/user setting and deferring to the system for background only.

In the meanwhile, I will try to set the forground to something at least 
readable on either background.  Is the dark theme background black as opposed 
to dark something?

--
nosy: +taleinat
stage: patch review -> needs patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44254] Change turtledemo button colors

2021-05-28 Thread Ned Deily


Ned Deily  added the comment:

I also just did a quick test of PR 25448. The current version seems to have 
swapped one problem for another: now button labels are legible when the Light 
mode appearance is in effect but the labels blend into the button background 
when in Dark mode, the opposite of the current behavior.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44254] Change turtledemo button colors

2021-05-28 Thread Ned Deily


Ned Deily  added the comment:

I did a quick check and it looks like the code may not be needed on the latest 
macOS and Tk versions; however, I did not go back and check it on older systems 
and, in any case, it doesn't cause seem to cause any harm and it still does 
what it is supposed to do: ensure that the turtledemo process is the frontmost, 
active one regardless of what the OS or Tk may do.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44254] Change turtledemo button colors

2021-05-28 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
keywords: +patch
pull_requests: +25042
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/26448

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44254] Change turtledemo button colors

2021-05-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Ned, could you check the darwin osascript in turtledemo.__main__, lines 138-149 
is current (both needed and correct)?

subprocess.run(
[
'osascript',
'-e', 'tell application "System Events"',
'-e', 'set frontmost of the first process whose '
  'unix id is {} to true'.format(os.getpid()),
'-e', 'end tell',
],
stderr=subprocess.DEVNULL,
stdout=subprocess.DEVNULL,)

The one line could be an fstring now.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44254] Change turtledemo button colors

2021-05-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I am going to disable color config on darwin (and hope it gets into b2).  The 
default should always work.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44254] Change turtledemo button colors

2021-05-28 Thread Ned Deily


Ned Deily  added the comment:

One quick comment: one shouldn't assume what colors are being used on current 
macOS systems and a current Tk, like on macOS 11 Big Sur and Tk 8.6.11.  The 
foreground and background colors can depend on what system appearance is 
selected by the user (System Preferences -> General -> Appearance: 
Light/Dark/Auto). Changing the system appearance to Dark causes the Turtle Demo 
buttons to have a darker background and so the white text labels are now quite 
visible.  I don't know what the best solution is but it shouldn't be based on 
the assumption that the colors are fixed.

--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44254] Change turtledemo button colors

2021-05-27 Thread Terry J. Reedy


New submission from Terry J. Reedy :

[Following up on #44243.]
tk/tkinter-based turtledemo buttons are currently white on something.  On Mac, 
configured foreground button colors are honored (while the button is 
unpressed), while background colors are ignored.  Given that the unpressed 
default is black on white, the configured result of white on something is white 
on white.

I don't like the current colors anyway, so I think we should change to 
something on white.  I am thinking of green, red, and blue for Start, Stop, and 
Clear.

--
components: Library (Lib)
messages: 394597
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Change turtledemo button colors
type: behavior
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com