I cant figure out how to read specific lines from text file, reading bit is not a problem really but then inserting that specific line to a box. I got this which seems like a step in direction but i would need help to figure this out as it doesn't read the data into the box.
def show_team():
with open("data/tournamentdatae1.txt",'r') as f:
event = combo_event.get()
get_all=f.readlines()
result =f.readline()
if event == 'Event 1':
with open('data/tournamentdatae1.txt', 'r') as f:
for i,line in enumerate(get_all,1):
if i == 1:
team_1txt.insert(0.0, result)