Код: Выделить всё
def change_colors():
#change button a, b and c colors
a = Button(text='1',command=change_color)
b = Button(text='2',command=change_color)
c = Button(text='3',command=change_color)
Код: Выделить всё
def change_colors():
a.config(bg='red')
b.config(bg='red')
c.config(bg='red')
Подробнее здесь: https://stackoverflow.com/questions/781 ... on-tkinter