如您所见,每个 tabMenu 在 tabMenu 单击后都有虚线如何删除此虚线?底部是源代码谢谢。
from tkinter import *
from tkinter import ttk
tabposition = ttk.Style()
tabposition.configure('TNotebook', sticky='w', tabposition='sw')
style = ttk.Style()
tabposition.configure("Tab", focuscolor=style.configure(".")["background"])
notebook = ttk.Notebook(root, width=1450, height=910)
notebook.pack(fill="y",expand=False)
notebook.place(x=526)
def newtab2():
frame0 = Frame(root)
notebook.add(frame0, text="First Input")
addSheet = Button(root, text="Enter", command=newtab2, borderwidth=1)
addSheet.place(x=10, y=159, width=41, height=41)