Hi,
I have a part of code, that creates 10 buttons:
Thank you for help...
L.
I have a part of code, that creates 10 buttons:
for i in range(10): b = tkinter.Button(root,text = i, command = lambda: click(i))... and event click:
def click(num): print(num)How is it possible, that every button click prints number 9? How can I solve this problem? I need the same event for all buttons and recognize them by parameter...(so after clicking on first button, i need to have set num to 0, on the second to 1, etc.
Thank you for help...
L.