ttk.Frame()
code:
import tkinter as tk
from tkinter import ttk
window = tk.Tk() RELIEF = ["flat", "raised", "sunken", "solid", "ridge", "groove"] window.title("relief example") for i in range(len(RELIEF)): temp = ttk.Frame(window, relief=RELIEF[i], borderwidth=5, width=150, height=50) for x in range(len(RELIEF)): ttk.Label(temp, text=RELIEF[i]).grid(row=i, column=x, padx=10) temp.grid(row=i, columnspan=len(RELIEF) * 10, padx=10, pady=10, sticky=tk.W) window.mainloop()
result: