The Entry widget

import tkinter as tk
from tkinter import ttk

parent = tk.Tk()
my_text_var = tk.StringVar()

my_entry = ttk.Entry(
    parent,
    textvariable=my_text_var
)
my_entry.pack()

parent.mainloop()

Discover more from Tips and Hints for Aerospace Engineers

Subscribe now to keep reading and get access to the full archive.

Continue reading