1

I have recently being trying to make pokedex using tkinter python and I was going well with it but a problem occurred, which made the whole interface ugly!

There is a dotted border which is coming in every active button and notebook tab which is spoiling look of the whole program.

Also the code of styling didn't worked out !

NOTE: I tried using focuscolor but it didn't help...

import tkinter as tk
from tkinter.ttk import *

root = tk.Tk()
root.geometry('700x500')

Style().configure('lefttab.TNotebook', tabposition='wn')
Style().configure('TNotebook.Tab', font='Courier 16')

notebook = Notebook(root, style='lefttab.TNotebook')
f1 = tk.Frame(notebook, width=500, height=400)
f2 = tk.Frame(notebook, width=500, height=400)

notebook.add(f1, text='Kantodex Vx')
notebook.add(f2, text='  Attacks  ')

notebook.pack(anchor=tk.NW)

root.mainloop()
Hardik Jain
  • 247
  • 2
  • 10
  • A picture of the "dotted border" would certainly help. – Lupos Dec 01 '19 at 15:01
  • 3
    Does this answer your question? [Removing Ttk Notebook Tab Dashed Line](https://stackoverflow.com/questions/23354303/removing-ttk-notebook-tab-dashed-line) – stovfl Dec 01 '19 at 15:22
  • https://www.tutorialspoint.com/how-to-remove-ttk-notebook-tab-dashed-line-tkinter – lRadha Aug 05 '22 at 09:49

0 Answers0