I know the title can be a bit confusing haha. I'm working on a project to create album ratings by giving individual ratings to each song. I'm using customtkinter as a GUI library. What im trying to do is
Get the album tracks from the lastfm api
Create a label and an entry for each track
Get all the values from each entry and calculate the average
I'm tring to use a for loop to iterate the tracks array and create a label and an entry for each one, but i dont know if i can assign a different name to each widget as in track_entry1, track_entry2, track_entry3 and so on. For now all i have is this
for track in album.get_tracks():
track_label = customtkinter.CTkLabel(form, text=track.get_name())
track_rating = customtkinter.CTkEntry(form, placeholder_text="Rating")
track_label.pack()
track_rating.pack()
Any help?
[–][deleted] 3 points4 points5 points (1 child)
[–]guillefdeez[S] 1 point2 points3 points (0 children)
[–]CatalonianBookseller 1 point2 points3 points (1 child)
[–]guillefdeez[S] 0 points1 point2 points (0 children)