Constructing the root window and the labelled inputs
Constructing the root window and the labelled inputs
Answer
import tkinter as tk root = tk.Tk() root.title("Ping a host") host_entry = tk.Entry(root, width=24) count_entry = tk.Entry(root, width=6) status = tk.Label(root, text="")
The module is `tkinter`, lower case, in Python 3. Every widget takes its parent as the first argument. Constructing a widget does not make it visible — that is the geometry manager's job, on a separate call.
Python 3 documentation: tkinter, tkinter.ttk, subprocess (docs.python.org/3)