tkinter button give command paramter code example
Example: tkinter button command with arguments
# One way is to use lambda
button = tk.Button(root, text="Button", command=lambda: func(args))
# One way is to use lambda
button = tk.Button(root, text="Button", command=lambda: func(args))