Skip to content
Tcl Source Code History Of Ticket 9a3b1ab453
Login

History Of Ticket 9a3b1ab453

Artifacts Associated With Ticket 9a3b1ab453

  1. Ticket change [cbea172561] (rid 162701) by cmaceachern on 2018-04-29 12:10:13:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      Hi, I was directed to report my bug here from the python bug tracker site. When using python 3.7.0b3 (newest possible version to get latest included tk, which is 8.6 as reported by "$ python3 -c 'import tkinter; print(tkinter.TkVersion);'".
      
      Setting the background color for a ttk Label does not change the background color. Here is the code I ran on python if it helps at all, and I have a screenshot but I can't add it here:
      
      import tkinter as tk
      from tkinter import ttk
      r = tk.Tk()
      l = ttk.Label(r, text='colored label', background='red')
      l.pack()
      r.mainloop()
      
      This same code works if I use the classic tk Label, as opposed to the ttk Label, and python bug tracker told me the issue is not with them as their 'tkinter' module is a simple wrapper around tk/tcl calls and to report here. Any ideas?
      
    5. foundin initialized to: "8.6"
    6. is_private initialized to: "0"
    7. login: "cmaceachern"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "72b0396fdbc55e3ea8faa851901391012b48546d"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "cmaceachern"
    14. subsystem initialized to: "17. Commands I-L"
    15. title initialized to:
      ttk Label -background option not respected on macOS X 10.13.4
      
    16. type initialized to: "Bug"
  2. Ticket change [8f23e4626a] (rid 162702) by bll on 2018-04-29 12:24:33:

    1. closedate changed to: "2458238.01705522"
    2. closer changed to: "bll"
    3. icomment:
      Mac OS X and the aqua theme has a very limited set of colors that are allowed.
      This is a Mac OS X limitation and not a Tk bug.
      
      Use the 'label' widget when you need a colored background.
      
    4. login: "bll"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"