Guest User

Untitled

a guest
Dec 14th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. from tkinter import *
  2. root=Tk()
  3. entry_text=StringVar(root)
  4. def print_entry_text():
  5. print(entry_text.get())
  6. e1 = Entry(root,textvariable=entry_text,width=100).pack()
  7. button = Button(root,text='Вывести',height = 1, width =
  8. 10,command=print_entry_text).pack()
  9. root.mainloop()
Add Comment
Please, Sign In to add comment