Skip to content Skip to sidebar Skip to footer

Creating A Grid Lines Inside Of Tkinter Treeview

I have one simple treeview made in tkinter. Is it possible to make a grid inside the tkinter treview, so that it looks more like a table? I want to make it more 'user-friendly', so

Solution 1:

I believe that the only option to make it more "user-friendly" is to create alternating row colors:

tree.insert("", "end", values=("a",),)
tree.insert("", "end", values=("b",), tag='gray')
tree.insert("", "end", values=("c",),)
tree.insert("", "end", values=("d",), tag='gray')
tree.tag_configure('gray', background='#cccccc')

Post a Comment for "Creating A Grid Lines Inside Of Tkinter Treeview"