理解python 3 tkinter框架中的table_stripped选项

时间:2018-10-07 13:43:13

标签: python python-3.x tkinter

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 选项的意义。

感谢帮助

0 个答案:

没有答案