Here is the code for python gui textbox.
Python code:
from tkinter import *
root=Tk()
name=StringVar()
a=Entry(root,textvariable=name)
a.pack()
def enter():
print(name.get())
print("the text we get"+name.get())
b=Button(root,text="enter",command=enter)
b.pack()
root.mainloop()
No comments:
Post a Comment