class TreeDataView(tk.Frame):
def __init__(self, master, headers, height=False, scrollbar_x=True, scrollbar_y=True, selectmode=None,
left_click=None, right_click=None, double_click=None, return_key=None, table_striped=False, **options):
tk.Frame.__init__(self, master)
self.table_striped = table_striped
font.nametofont('TkHeadingFont').configure(size = 12, family = "Calibri", weight=BOLD)
style = ttk.Style()
style.theme_use('clam')
style.configure('Treeview', relief = 'groove', borderwidth = 1)
# style.configure("Treeview", lightcolor="#ffc61e", bordercolor="#ffc61e", darkcolor="#ffc61e")
我有上面的类,它继承了Frame类并覆盖了构造方法。 从构造函数中传递的这些选项中,我无法找到/理解 table_striped 选项的意义。
感谢帮助