Merhaba, aşşagıdaki resimde gördügünüz üzere Notebook arasında mesafe yok dip dibe duruyorlar aralarında yukardan aşşagı bi boşluk olsun istiyorum nasıl yapabilirim yardım ederseniz sevinirim.
KOD
import tkinter as tk
from tkinter import ttk
root = tk.Tk()
root.geometry('600x600')
root.config(bg="white")
style = ttk.Style(root)
style.theme_create("yummy", parent="classic", settings={
"TNotebook": {"configure": {"tabmargins": [2, 1, 55, 0], "background": "white"}},
"TNotebook.Tab": {
"configure": {"padding": [19, 5], "background": "#BFBFBF", "foreground": "#2e2e2e"},
"map": {"background": [("selected", "white")],
"expand": [("selected", [1, 1, 5, 0])]}}})
style.theme_use("yummy")
style.configure('lefttab.TNotebook', tabposition='wne')
notebook = ttk.Notebook(root, style='lefttab.TNotebook')
f1 = tk.Frame(notebook, bg='red', width=400, height=200)
f2 = tk.Frame(notebook, bg='blue', width=400, height=200)
notebook.add(f1, text='Frame 1')
notebook.add(f2, text='Frame 2')
notebook.pack()
root.mainloop()