# -*- coding: utf-8 -*- import tkinter as tk import tkinter.ttk as ttk root = tk.Tk() root.title("tk20.py") root.geometry("200x120") ##################################### ttk.Style().configure('.',padding = 5, relief = 'sunken', background = 'pink', foreground = 'red') ttkLb1 = ttk.Label(root, text = "ttk Label_1") ttkLb2 = ttk.Label(root, text = "ttk Label_2") ttkLb3 = ttk.Label(root, text = "ttk Label_3") ttkLb1.pack() ttkLb2.pack() ttkLb3.pack() ##################################### root.mainloop()