May 2018
Beginner to intermediate
452 pages
11h 26m
English
Let's learn the basics of Tkinter by creating a simple Hello World script for Tkinter by performing the following steps:
"""Hello World application for Tkinter""" from tkinter import * from tkinter.ttk import * root = Tk() label = Label(root, text="Hello World") label.pack() root.mainloop()
python3 hello_tkinter.py
You should see a very tiny window pop up with the text Hello World as shown in the following screenshot: