colorful tkinter button code example
Example 1: change color of butto in thkinter
button = Button(tkWindow, bg='blue')
button = Button(tkWindow, bg='black')
button = Button(tkWindow, bg='white')
button = Button(tkWindow, bg='red')
#hex values
button = Button(tkWindow, bg='#54FA9B')
button = Button(tkWindow, bg='#A877BA')
Example 2: add a button on tkinter
import tkinter
button1 = ttk.Button(self, text="anything", command=random command)
button1.pack()