I am looking for a way to write information for my treeview in tkinter. I wrote this by using the set method but my sentences disappear when I write on the next line. I want my information for the teeeview to display when I move to the next line.
from tkinter import *
from tkinter import ttk
root =Tk()
tree = ttk.Treeview(root)
tree.insert("","0","item1",text="LANGUAGE")
tree.insert("","1","item2",text="GUI")
tree.insert("item1","1",text="Version")
tree.insert("item2","end",text="Tkinter")
tree.config(columns=("NOTE"))
tree.column("NOTE",width=300)
tree.heading("NOTE",text="Info")
tree.set("item1","NOTE","Am using python version 3.6.1 \n on windows machine
")
tree.set("item2","NOTE","This an example Tkinter Treeview in Python, which
is from \nttk class make sure import ttk\n also from tkinter import *")
tree.pack()
root.mainloop()
Are there any methods in treeview I can use to display this, because I want to write a lot of information for the treeview?