[issue42541] Tkinter colours wrong on MacOS universal2

2021-01-06 Thread E. Paine
E. Paine added the comment: This does not appear to be a problem anymore on Tk 8.6.11 so I think this issue can be closed. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue42541] Tkinter colours wrong on MacOS universal2

2021-01-04 Thread Ned Deily
Ned Deily added the comment: As Ronald notes, as of 3.9.1, we are for the immediate future providing two macOS installer variants: the traditional 10.9+ Intel-64 variant that is built on 10.9 and includes Tk 8.6.8 and the new "experimental" 10.9+ "universal2" (Apple Silicon and Intel-64) var

[issue42541] Tkinter colours wrong on MacOS universal2

2021-01-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: W.r.t. building on 10.9: until very recently (trunk and 3.9.1) Python didn’t check for symbol availability at runtime. Building on 10.9 is basically a workaround for that. The, for now experimental, “universal2” installer for 3.9.1 is build on Big Sur and

[issue42541] Tkinter colours wrong on MacOS universal2

2021-01-04 Thread Marc Culler
Marc Culler added the comment: Well, actually the release was announced today. There was one bug fix which did not make it into the release but could possibly affect Python, due to the fact that Python is installed as a framework, and frameworks to not have icons. I can supply a (1-line) pa

[issue42541] Tkinter colours wrong on MacOS universal2

2021-01-04 Thread E. Paine
E. Paine added the comment: Note: Tcl/Tk 8.6.11 was released a few days ago (thanks Kevin/Marc!). -- ___ Python tracker ___ ___ Pyt

[issue42541] Tkinter colours wrong on MacOS universal2

2020-12-03 Thread Marc Culler
Marc Culler added the comment: Yes, I can provide a good commit ID to work with. Please give me a couple of days. The current tip is almost an ideal choice. There have been no Aqua bug reports for quite some time. But now there is one new one (from Kevin) so I'd like to fix that, discuss

[issue42541] Tkinter colours wrong on MacOS universal2

2020-12-03 Thread Ned Deily
Ned Deily added the comment: I agree that moving forward (using an unreleased 8.6.10+ snapshot) is better than moving backwards (back to 8.6.9). Perhaps Marc or Kevin can suggest Tcl and Tk dev heads to use. -- nosy: +culler ___ Python tracker <

[issue42541] Tkinter colours wrong on MacOS universal2

2020-12-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: It is possible to opt out of dark mode using a key in the Info.plist file. This can also be used in the Python.app hidden in the framework to globally disable support for dark mode. I wouldn't switch back to 8.6.9, if only because that doesn't build properl

[issue42541] Tkinter colours wrong on MacOS universal2

2020-12-03 Thread E. Paine
E. Paine added the comment: > we should at least opt out of dark mode for IDLE That still leaves tkinter almost unusable when dark mode is turned on. I am looking into solutions but am not hopeful (maybe we should ask Marc?). @Ned, what are the alternatives if we decide 8.6.10 is not the way

[issue42541] Tkinter colours wrong on MacOS universal2

2020-12-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is a duplicate of #38261. I'm closing that other issue because this issue has more discussion. -- ___ Python tracker ___

[issue42541] Tkinter colours wrong on MacOS universal2

2020-12-02 Thread Kevin Walzer
Kevin Walzer added the comment: Ned, I wish I knew. Marc and I are both now members of the TCT, and have had a few conversations around the release schedule, but the release schedule is more or less determined when one or two senior members of the TCT decide things are ready. We had some mom

[issue42541] Tkinter colours wrong on MacOS universal2

2020-12-02 Thread Ned Deily
Ned Deily added the comment: Thanks for checking, Kevin. Is there any update on when we can expect a Tk 8.6.11? It's been over a year now since 8.6.10 and there have been so many macOS-related changes that have gone into Tk since then. It's really not fair to ask downstream packagers, like

[issue42541] Tkinter colours wrong on MacOS universal2

2020-12-02 Thread Kevin Walzer
Kevin Walzer added the comment: This bug is not present in IDLE 3.9.0 when built against the tip of Tk core-8-6-branch. Marc Culler has done some work to fix the visual artifacts, and the work continues. The problem here is that Apple's API churn continually breaks parts of Tk with each new

[issue42541] Tkinter colours wrong on MacOS universal2

2020-12-02 Thread E. Paine
E. Paine added the comment: It seems to be some weird internal mismatch. Code modified from https://wiki.tcl-lang.org/page/Tk+differences+on+Mac+OS+X (see following) suggests that dark mode is not enabled for the window (and yet we are getting white foreground colours) import tkinter as tk

[issue42541] Tkinter colours wrong on MacOS universal2

2020-12-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: With some luck it might be possible to work around this. If it isn’t we should at least opt out of dark mode for IDLE by changing its Info.plist. https://developer.apple.com/documentation/appkit/nsappearancecustomization/choosing_a_specific_appearance_for_yo

[issue42541] Tkinter colours wrong on MacOS universal2

2020-12-02 Thread E. Paine
E. Paine added the comment: I just compiled Tk 8.6.10 and it has the same problems. So the question now is whether we work-around it in Tkinter/IDLE or close this issue as third party. -- ___ Python tracker ___

[issue42541] Tkinter colours wrong on MacOS universal2

2020-12-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: The problem seems to be that the window background doesn't adjust to dark mode, while the window contents does. I don't know if we should do something in Tkinter for this. -- ___ Python tracker

[issue42541] Tkinter colours wrong on MacOS universal2

2020-12-02 Thread E. Paine
E. Paine added the comment: Sorry, that was an important piece of information. It is worth noting that Text widgets correctly change background to black. -- ___ Python tracker __

[issue42541] Tkinter colours wrong on MacOS universal2

2020-12-02 Thread E. Paine
E. Paine added the comment: > Are you running in dark mode? Yes. It works fine in light mode. -- ___ Python tracker ___ ___ Python

[issue42541] Tkinter colours wrong on MacOS universal2

2020-12-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: Are you running in dark mode? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue42541] Tkinter colours wrong on MacOS universal2

2020-12-02 Thread E. Paine
Change by E. Paine : Added file: https://bugs.python.org/file49646/Screenshot-2020-12-02-at-12-46-06.png ___ Python tracker ___ ___ Python-

[issue42541] Tkinter colours wrong on MacOS universal2

2020-12-02 Thread E. Paine
New submission from E. Paine : When using tkinter from the universal2 package, the colours are completely confused. Most text tries to white, even though the background is light and this makes text in Entries completely unreadable (where the background is white). This affects both Tk and Ttk.