© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
K. WilsonThe Absolute Beginner's Guide to Python Programminghttps://doi.org/10.1007/978-1-4842-8716-3_10

10. Building an Interface

Kevin Wilson1  
(1)
London, UK
 

Modern computer applications are built with graphical user interfaces in mind. The user interacts with the application using windows, icons, menus, and a mouse pointer rather than console-based I/O.

To create a graphical user interface using Python, you’ll need to use Tkinter (Tk interface). This module is bundled with standard distributions of Python for all platforms.

Creating a Window

The first thing you need to do is import the Tkinter module into your program. To do this, use
from tkinter import ...

Get The Absolute Beginner's Guide to Python Programming: A Step-by-Step Guide with Examples and Lab Exercises now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.