Python Forum
[Tkinter] So what do I need to do change the color this label?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] So what do I need to do change the color this label?
#8
Hi jpezz

Make following modification:
label=tk.Label(root, textvariable=time_str, font=label_font, bg='white', 
    fg=Number_Color.get(), relief='raised', bd=3)
label.pack(fill='x', padx=5, pady=5)
wuf :-)
Reply


Messages In This Thread
RE: So what do I need to do change the color this label? - by wuf - Apr-02-2019, 09:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] [Solved]Change text color of one line in TextBrowser Extra 2 7,323 Aug-23-2022, 09:11 PM
Last Post: Extra
  [WxPython] [SOLVED] How to change button label? Winfried 3 3,664 May-31-2022, 06:37 PM
Last Post: Winfried
  Tkinter - How can I change the default Notebook border color? TurboC 5 17,961 May-23-2022, 03:44 PM
Last Post: bigmac
Question [Tkinter] Change Treeview column color? water 3 14,329 Mar-04-2022, 11:20 AM
Last Post: Larz60+
  Can't get tkinter button to change color based on changes in data dford 4 5,100 Feb-13-2022, 01:57 PM
Last Post: dford
  [tkinter] color change for hovering over button teacher 4 11,721 Jul-04-2020, 06:33 AM
Last Post: teacher
  [PyQt] Increase text size and change color based on temp pav1983 5 4,599 Jun-22-2020, 10:52 PM
Last Post: menator01
  [Tkinter] Change Label Every 5 Seconds gw1500se 4 9,333 May-26-2020, 05:32 PM
Last Post: gw1500se
  TKINTER - Change font color for night or day Ayckinn 2 5,079 May-24-2020, 09:25 PM
Last Post: Ayckinn
  [Tkinter] Python 3 change label text gw1500se 6 6,863 May-08-2020, 05:47 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020