How to create a simple screen using Tkinter?



 We will create a simple screen using the Tkinter library.

Algorithm

Step 1: Import tkinter.
Step 2: Create an object of the tkinter class.
Step 3: Display the screen.

Example Code

import tkinter as tk
window = tk.Tk()

Output


Advertisements