from tkinter import *
def _name_():
businessname=entry_bn
print(businessname)
edit_bar=Tk()
name=Label(edit_bar,text="Name:").grid(row=0)
entry_bn=Entry(edit_bar)
entry_bn.grid(row=0,column=1)
submit=Button(edit_bar,text="Submit",command=_name_).grid(row=1,column=2)
Whenever i press my submit button, i get .!entry printed out, instead of what is entered into the entry box. Any ideas? Thank you
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…