1import tkinter as tk
2
3window_main = tk.Tk(className='Tkinter - TutorialKart', )
4window_main.geometry("400x200")
5
6entry_1 = tk.StringVar()
7
8entry_widget_1 = tk.Entry(window_main, textvariable=entry_1)
9entry_widget_1.pack()
10
11def submitValues():
12 print(entry_1.get())
13
14submit = tk.Button(window_main, text="Submit", command=submitValues)
15submit.pack()
16
17window_main.mainloop()
18