text: #tk07
  #modify to study git/github 2021/2/3
  
  import tkinter as tk
  
  def print_txtval():
      val_en = en.get()
      print (val_en)
  
  root = tk. Tk()
  root.title('get text box')
  root.geometry('400x150')
  
  lb = tk.Label(text = 'label')
  en = tk.Entry()
  bt = tk.Button(text='button', command=print_txtval)
  #[widget.pack() for widget in [lb,en,bt]]
  lb.pack()
  en.pack()
  bt.pack()
  root.mainloop()