Hello everyone, In this post, you will learn How to Create a Simple Window in Python. The example program has been tested and shared in the same post.

Example Program

import tkinter as tk
# creating an instance for Tk
root = tk.Tk()
# setting a title
root.title("My Title")
# starting a window
root.mainloop()

Output

How to Create a Simple Window in Python

No responses yet

Leave a Reply

Your email address will not be published. Required fields are marked *