Stylish GUIs with Python CustomTkinter — #1 Basics

Better Everything
7 min readFeb 20, 2023

A Graphical User Interface (GUI) is a screen that you can open up on your computer. The screen can display information like text and images. But it also makes it possible for a user to interact with the computer through text-input fields, buttons and checkboxes for example.

Python comes with a standard package to make GUIs, it is called tkinter. There also is a package that works similar to tkinter but the GUIs you make with it are more modern looking, this package is called customtkinter.

The customtkinter  GUI you will end up with by following this article.
The customtkinter GUI you will end up with by following this article. Source: own image.

This is the first part of a series about making GUIs with customtkinter. In which we will start with the basics. The GUI above is what we will be making in this article.

These are the sections of this article:

  1. Making our first GUI with customtkinter
  2. Set the size and title of a GUI
  3. Set the appearance mode of a GUI
  4. Add text to a GUI with CTkLabel
  5. Add a text input field to a GUI with CTkEntry
  6. Add checkboxes to a GUI with CTkCheckbox
  7. Add a button to a GUI with CTkButton
  8. Set the default color theme of a GUI

1. Making our first GUI with customtkinter

--

--

Better Everything

✅Programming, Data & Business ✅Automation & Optimization ✅Knowledge & Inspiration