def display():
root2=customtkinter.CTk()
root2.title('View Results')
root2.geometry('500x350')
new_frame= customtkinter.CTkFrame(root2)
print("FIFA World Cup Winners\n")
print(f'Country\t\tWins\tYears')
print("=======\t\t====\t=======")
for country in sorted(data_dict):
print(f'{country}\t\t{len(data_dict[country])}\t', end="")
print(*data_dict[country], sep = ", ")
root2.mainloop()
I have tried this code and also tried treeview but no luck. Have to print this dictonary in table view in tkinter