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=
This can also be done by using partial from the standard library functools, like this:
partial
from functools import partial #(...) action_with_arg = partial(action, arg) button = Tk.Button(master=frame, text='press', command=action_with_arg)