Suppose I have the following Button made with Tkinter in Python:
Button
import Tkinter as Tk win = Tk.Toplevel() frame = Tk.Frame(master=win).grid(row=
One simple way would be to configure button with lambda like the following syntax:
button
lambda
button['command'] = lambda arg1 = local_var1, arg2 = local_var2 : function(arg1, arg2)