Is there a way to change label fg colour with Tk? - Raspberry Pi Forums


hi
i'd change foreground of label, when int reaches defined value (button or this)
how work?
label looks this:

code: select all

self.label = tk.label(self, textvariable = self.labeltext[0][0], fg=colour.get(), bg="white") 
, try to:

code: select all

colour.set("red") 
works, when set colour before creating label, need after that.

lot :)

please please please... if you're posting problem, give @ least details setup.
bit of code gather you're using tkinter python.


raspberrypi



Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code