the problem is:
return self.func(*args)
TypeError: b1_pg() missing 1 required positional argument: 'e1'
i search entire google but i didn't found any thing
from tkinter import *
from tkinter import ttk
from functools import partial
root = Tk()
root.geometry('400x200+100+200')
def b1_pg(e1):
search = str(e1.get())
print(search)
return search
what = ttk.Label(root, text="who do you want to search about???").grid(row=1, column=0)
e1 = ttk.Entry(root, width=40).grid(row=1, column=1)
b1 = ttk.Button(root, text="if you are ready prees here", command=b1_pg).grid(row=2, column=0)
#information=ttk.Label(root,text=family{search})
root.title('family')
root.mainloop()
i expect the code take the value from e1(entry) when i preesd the button but it give me an error
return self.func(*args)
TypeError: b1_pg() missing 1 required positional argument: 'e1'
what's the wrong in my code?