How to Build User Interfaces with Python — Tkinter Widgets — Part. 2
More and more widgets
Published in
6 min readOct 8, 2022
This story follows the User Interfaces series. If you have missed the last Tkinter story, you can find it here:
In the previous story, I talked about some Tkinter widgets you can use in your applications:
- Frame
- Text
- Checkbutton
- Slider
- Spinbox
Today, I’ll talk about some other useful widgets! Let’s not waste any more time and get to the heart of the matter.
If you want, you can find the code of the story on GitHub. Else, the code we start with is:
import tkinter as tk
from tkinter import ttk
main_window = tk.Tk()
main_window.title("Widgets")
main_window.geometry("400x400")
main_window.grid_columnconfigure(0, weight=1)
main_window.grid_columnconfigure(1, weight=1)
main_window.grid_columnconfigure(2, weight=1)