I'm trying my first GUI application and was wondering if there is a way to change the background attribute of a Label (or Button?) if a condition changes while the applications is running. I see where you can change the text, but I can't find anything regarding other attributes such as background.
Thanks
yes you can change it if you are using tkinter ( python3 ) or Tkinter ( python2 )
button.config(bg="#ffdddd")
would change the background of a button.
the #ffdddd is the levels of red, green and blue to make your background colour. they are each 2 digit hex numbers from 0 to 255 decimal.
Sorry for the delay, busy day yesterday. Thanks for the tips, I will read and experiment more.