hello everybody. first post here
i'm having trouble to get the text value inside an Entry box. So, i created this small example that shows up the problem:
thanks in advance :)

i'm having trouble to get the text value inside an Entry box. So, i created this small example that shows up the problem:
import tkinter as tk root = tk.Tk() label = tk.Label(root, text="Entry Box") label.pack() entry = tk.Entry(root) entry.pack() button = tk.Button(root, text="Print", command=print(entry.get())) button.pack() root.mainloop()why doesn't it print the value entered by the user? do i have to update the entry box somehow?
thanks in advance :)