button = Tk.Button(master=frame, text='press', command=lambda: action(someNumber))
Я считаю, что это исправить