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

Updated on: 16-Mar-2021

333 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements