How to remove border from tabs #50
Answered
by
rdbende
ThomasTopi
asked this question in
Q&A
|
Hey, it is possible to remove this border from the selected tab? |
Answered by
rdbende
Sep 30, 2022
Replies: 2 comments 3 replies
|
That dashed border is the keyboard focus marker, so I don't recommend you to remove it. |
2 replies
Answer selected by
ThomasTopi
|
@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 |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

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=Falsewhen creating the notebook, and it will disable keyboard focus for the notebook tabs.