How to remove border from tabs #50
-
Hey, it is possible to remove this border from the selected tab? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
That dashed border is the keyboard focus marker, so I don't recommend you to remove it. |
Beta Was this translation helpful? Give feedback.
-
@rdbende the blue color border is still not removed after passing My code: from tkinter import ttk
import tkinter
import sv_ttk
root = tkinter.Tk()
root.geometry("400x400")
notebook = ttk.Notebook(root, takefocus=False)
notebook.pack(expand=True, fill="both", padx=10, pady=10)
tab_1 = ttk.Frame(notebook, takefocus=False)
notebook.add(tab_1, text=f"Tab 1")
sv_ttk.set_theme("dark")
root.mainloop() Platform: windows 11 |
Beta Was this translation helpful? Give feedback.
That dashed border is the keyboard focus marker, so I don't recommend you to remove it.
However, if you want, you can add
takefocus=False
when creating the notebook, and it will disable keyboard focus for the notebook tabs.