Cannot set the row height of ttkbootstrap.tableview.Tablewview data rows. I can change the heading but not the data rows.
import ttkbootstrap as ttk
from ttkbootstrap.tableview import Tableview
from ttkbootstrap.constants import *
app = ttk.Window()
style = app.style
**style.configure('Treeview.Heading', rowheight=80, font=(None, 18))
style.configure('Treeview', rowheight=80, font=(None, 18))**
coldata = [{"text": "LNum", "stretch": False}, "CompanyName", {"text": "UserCount", "stretch": False}, ]
rowdata = [('A123', 'IzzyCo', 12), ('A136', 'Kimdee Inc.', 45), ('A158', 'Farmadding Co.', 36)]
dt = Tableview(
master=app,
coldata=coldata,
rowdata=rowdata,
paginated=True,
searchable=True
)
dt.pack(fill=BOTH, expand=YES, padx=10, pady=10)
dt.load_table_data()
app.mainloop()
I expect the data row height to increase in height but it does not.
source https://stackoverflow.com/questions/77706412/ttkbootstrap-tableview-tableview-rowheight-doesnt-work-for-data-rows
Comments
Post a Comment