you should use buttons for entry. You've already got tkinter installed, and buttons will solve a lot of issues.
Also, if you use a class, you won't have to worry about callbacks.
There's a lot missing in your code, and structure isn't correct.
You should look at the docs at least for the widgets that you are using here: https://docs.python.org/3/library/tk.html
for example, you must use either a 'command' attribute, or a bind instruction in order for the button to execute a command.
And you need to 'get' the text value of the Entry widget.
Here's a simple Button example
Also, if you use a class, you won't have to worry about callbacks.
There's a lot missing in your code, and structure isn't correct.
You should look at the docs at least for the widgets that you are using here: https://docs.python.org/3/library/tk.html
for example, you must use either a 'command' attribute, or a bind instruction in order for the button to execute a command.
And you need to 'get' the text value of the Entry widget.
Here's a simple Button example
import tkinter as tk root = tk.Tk() root.geometry('100x100+50+50') def clicked(): print('Button clicked') def make_button(): # notice there is no () after clicked because we want reference to clicked routine, # and if () were added, it would be executed immediately btn = tk.Button(root, text='Push Me', command=clicked) btn.pack() make_button() root.mainloop()