Tkinter Hello World

  • Post category:Tkinter

In this Tkinter tutorial, you will learn how to create a Tkinter Hello World application in Python.

# import Tkinter Module
import tkinter as tk

# create main window
var = tk.Tk()

# Set title
var.title("Hello World")

# start the event loop
var.mainloop()

Output:

Free resources to learn advanced skills: AiHints and CodeAllow