Hi, this is my first time on this site and first ever time doing python. So the code might (will) be bad. I am trying to have a entry field where whatever the user types in it will print it out when clicking on the button created but it does not work.
this is my code:
this is my code:
from Tkinter import * root = Tk() label = Label(root, text="Name") label.grid(row=0, column=0) entry = Entry(root, bd=5) entry.grid(row=0, column=1) def helloCallback(): print () b = Button(root, text="Submit", command=helloCallback) b.grid(row=0, column=2) root.mainloop()