ttk_button_01.py

# =========================================================
# For ttk info: docs.python.org/3/library/tkinter.ttk.html
#
# Example from: docs.python.org/3.1/library/
#               tkinter.ttk.html#ttkstyling
# =========================================================

import tkinter
from tkinter import ttk

root = tkinter.Tk()

style = ttk.Style()

style.configure('.',font=('arial', '15', 'bold'))

style.map("C.TButton",
    foreground=[('pressed', 'red'), ('active', 'blue')],
    background=[('pressed', '!disabled', 'black'), ('active', 'white')])

ttk.Button(text="Test1", style="C.TButton").pack()

ttk.Button(text="Test2", style="C.TButton").pack()

root.mainloop()