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=
You need to use lambda:
lambda:
button = Tk.Button(master=frame, text='press', command=lambda: action(someNumber))