Perform a SQL search on a button click with Tkinter
The way GUIs are typically written is that you don't pass information in callbacks. Instead, the callback requests information from the UI when it is executed.
In your case I recommend you remove the parameter for login
, and modify login
to fetch the information when it is called.
For example:
def login(): id = eID.get() ...