tkinter field entry

Solutions on MaxInterview for tkinter field entry by the best coders in the world

showing results for - "tkinter field entry"
Sofia
30 Jun 2020
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