I want the information to be entered when I press a button with a red background. / But it doesn't work. / How can I make it enter when the button background is red?
color= ['red', 'orange', 'yellow', 'green', 'blue', 'violet', 'purple', 'green yellow', 'snow', 'maroon1']
b0 = tk.Button(root, text = (out0), bg=random.choice(color), command=lambda:code(out0))
if b0 == 'red' :
pin += str(value)
e.insert('end', value)