Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- root=Tk()
- entry_text=StringVar(root)
- def print_entry_text():
- print(entry_text.get())
- e1 = Entry(root,textvariable=entry_text,width=100).pack()
- button = Button(root,text='Вывести',height = 1, width =
- 10,command=print_entry_text).pack()
- root.mainloop()
Add Comment
Please, Sign In to add comment