change window tab size python code example
Example: how to set the tab size in tkinter
from tkinter import *
import tkinter.font as tkfont
root = Tk()
text = Text(root)
text.pack()
font = tkfont.Font(font=text['font'])
tab = font.measure(' ')
text.config(tabs=tab)
root.mainloop()