Treeview Tkinter hiển thị dữ liệu bảng. Cấu hình row height qua ttk.Style() property rowheight.
Ví dụ
from tkinter import *
from tkinter import ttk
win = Tk()
win.geometry("700x350")
s = ttk.Style()
s.theme_use('clam')
s.configure('Treeview', rowheight=40)
tree = ttk.Treeview(win, column=("c1", "c2", "c3"), show='headings', height=5)
tree.column("# 1", anchor=CENTER)
tree.heading("# 1", text="ID")
tree.column("# 2", anchor=CENTER)
tree.heading("# 2", text="FName")
tree.column("# 3", anchor=CENTER)
tree.heading("# 3", text="LName")
for i, (id, fn, ln) in enumerate([(1,'Joe','Nash'),(2,'Emily','Mackmohan'),(3,'Estilla','Roffe'),(4,'Percy','Andrews'),(5,'Stephan','Heyward')], 1):
tree.insert('', 'end', text=str(i), values=(id, fn, ln))
tree.pack()
win.mainloop()
Kết quả
Treeview 3 cột ID, FName, LName, 5 hàng dữ liệu, mỗi hàng cao 40px (rowheight=40).

Mặc định: rowheight ~20px (tùy font/theme). rowheight thêm internal padding cho mỗi row.