Question Details

No question body available.

Tags

tkinter button tkinter-button

Answers (1)

January 27, 2026 Score: 1 Rep: 33 Quality: Low Completeness: 50%

I managed to fix this problem with zip() , it did go over my head the first time, but now the buttons copy their assigned URL properly, this was the solution:

gridbuttons: list[ttk.Button] = [ttk.Button(self, image=image, width=48, command=emote.copyurl) for image, emote in zip(self.currentimages, currentemotes)]

for x, v in enumerate(grid
buttons): for y, v1 in enumerate(grid_buttons): v.grid(row=y, column=x)