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?
#11
(Apr-03-2019, 06:26 AM)wuf Wrote: Hi jpezz

On my side this alteration is working perfectly. Here i place the modified script. The count down starts at 40 in green. With 30 the color of the figures in the label change to yellow (Yellow on a white background is not the best contrast). Reaching 15 the color does change to red. To avoid the import of all parameter i have placed a test line in the script!
wuf :-)

Aha! So little understanding - so hard to do. That's me.

I put my stuff back into your version and it works like I want it to. I even changed the bg to black when the color changes as Larz60+ suggested. You guys are great (and very patient).
Reply


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