Oct-23-2017, 09:40 PM
Not sure of the whole problem you have but here is a snippet from a program I wrote to create a bunch of buttons.
Maybe that will be of use in solving part of your problem
ro = 1 line = 1 colcount = 10 for x in range(1,56): txt = str(x) myname="button" + txt myname = Button(frame3, text = txt, font = 30, width = 3) myname.bind('<Button-1>', play_song) myname.grid(row = ro, column = line) line += 1 if line == colcount: line = 1 ro += 1the name of the buttons will be button1, button2 etc and the text on the corresponding button will be 1,2 and so on.
Maybe that will be of use in solving part of your problem