Python Forum
[PyQt] Increase text size and change color based on temp
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] Increase text size and change color based on temp
#2
Add this in your getWeather function. Then use condition to change.

weather['fg'] = 'red'
weather['font'] = 'sans 16 normal'
weather['bg'] = 'pink'
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags


Reply


Messages In This Thread
RE: Increase text size and change color based on temp - by menator01 - Jun-22-2020, 10:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Can't change the colour of Tk button text Pilover 6 14,916 Nov-15-2022, 10:11 PM
Last Post: woooee
  [PyQt] [Solved]Change text color of one line in TextBrowser Extra 2 4,968 Aug-23-2022, 09:11 PM
Last Post: Extra
  Tkinter - How can I change the default Notebook border color? TurboC 5 14,859 May-23-2022, 03:44 PM
Last Post: bigmac
Question [Tkinter] Change Treeview column color? water 3 9,717 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,482 Feb-13-2022, 01:57 PM
Last Post: dford
  how to change font size barryjo 4 3,981 Jan-26-2022, 08:46 PM
Last Post: menator01
  tkinter change the text of the checkbox zazas321 1 3,895 Sep-17-2021, 06:19 AM
Last Post: zazas321
  Updating button text based upon different variable values knoxvilles_joker 0 2,261 Apr-18-2021, 04:13 AM
Last Post: knoxvilles_joker
  How to dynamically change radiobutton text kenwatts275 2 3,402 Mar-05-2021, 02:25 AM
Last Post: deanhystad
  Tkinter menu font size -method to change tonycat 2 7,910 Oct-11-2020, 02:43 AM
Last Post: tonycat

Forum Jump:

User Panel Messages

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