I need to filter CSV file by result in ListBox, and result to show up in Text widget. When i use this search function says that Text has no attribute 'insert'.
I need to do it for my homework. I tried everything that i could find in this site and many other sites, but it din't fixed the issue
global search_input
with open(f, 'r', encoding = 'utf-8') as f_in:
for line in f_in:
line = line.strip()
global row
row = []
if search_input in line:
row.append(line)
TextBox = tkinter.Text(root, height=20, width=30,state='disabled').grid(row=2,column=0,)
TextBox.insert('end',*row)