Skip to content

Tkinter CheckButton default label white in macOS dark mode #82442

Closed

Description

@RyangSohn
mannequin
BPO 38261
Nosy @ronaldoussoren, @ned-deily
Superseder
  • bpo-42541: Tkinter colours wrong on MacOS universal2
  • Files
  • tkinter_checkbox.py: The minimum source file to validate the issue.
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/ned-deily'
    closed_at = <Date 2020-12-03.15:57:12.304>
    created_at = <Date 2019-09-24.04:35:40.355>
    labels = ['OS-mac', 'type-bug', 'expert-tkinter', '3.7']
    title = 'Tkinter CheckButton default label white in macOS dark mode'
    updated_at = <Date 2020-12-03.15:57:12.303>
    user = 'https://bugs.python.org/RyangSohn'

    bugs.python.org fields:

    activity = <Date 2020-12-03.15:57:12.303>
    actor = 'ronaldoussoren'
    assignee = 'ned.deily'
    closed = True
    closed_date = <Date 2020-12-03.15:57:12.304>
    closer = 'ronaldoussoren'
    components = ['macOS', 'Tkinter']
    creation = <Date 2019-09-24.04:35:40.355>
    creator = 'Ryang Sohn'
    dependencies = []
    files = ['48620']
    hgrepos = []
    issue_num = 38261
    keywords = []
    message_count = 4.0
    messages = ['353056', '353060', '381125', '382422']
    nosy_count = 3.0
    nosy_names = ['ronaldoussoren', 'ned.deily', 'Ryang Sohn']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '42541'
    type = 'behavior'
    url = 'https://bugs.python.org/issue38261'
    versions = ['Python 3.7']

    Activity

    1. RyangSohn commented on Sep 24, 2019

      RyangSohnmannequin
      MannequinAuthor

      In macOS, when "Dark Mode" is turned on, TKinter's checkbutton's default label color is white, not black.

    2. ned-deily commented on Sep 24, 2019

      @ned-deily
      Member

      I assume you are using a Python 3.7.x from a python.org macOS installer? Support for macOS dark mode is almost entirely a Tk issue as Tkinter is basically a shallow wrapper around Tk-provided APIs. We have been shipping Tk 8.6.8, s stable, slightly out-of-date version because it seemed to have the least number of issues across all of the macOS versions we support. With macOS 10.15 coming soon, I will shortly be taking another look st the latest unreleased Tk which may also have better support for dark mode.

    3. self-assigned this
      on Sep 24, 2019
    4. ronaldoussoren commented on Nov 16, 2020

      @ronaldoussoren
      Contributor

      The same behaviour can be observed with Tk 8.6.10 build on macOS 11.

      IMHO the problem is not so much that the default text color changes, but that the background color of the window does not change, it stays the same light color as in light mode.

      According to the Tk wiki <https://wiki.tcl-lang.org/page/Tk+differences+on+Mac+OS+X\> the background color should adjust itself automatically. I don't know if Tkinter does something that affects this.

    5. ronaldoussoren commented on Dec 3, 2020

      @ronaldoussoren
      Contributor

      This is a duplicate of bpo-42541.

    6. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions