Mark
0
Q:

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()
0

New to Communities?

Join the community