Assign function with arguments to Button in Tkinter
Normally command= in Button expects "callback" - it means function's name without ()
and without arguments - but sometimes it is needed to assign function with argument
and then you can use lambda to do this.
command=lambda:function(arg1, arg2, arg3)
import tkinter as tk
def function(text):
print(text)
root = tk …
furas.pl