Blog

python tutorials and learn python

Created with Sketch.

Tkinter Radio Button

Tkinter Radio Button Summary: in this tutorial, you’ll learn how to use the Tkinter radio button widget to allow users to select between one of a number of mutually exclusive choices. Introduction to Tkinter radio buttons Radio buttons allow you to select between one of a number of mutually exclusive choices. Typically, you use radio…
Read more

Tkinter Checkbox

Tkinter Checkbox Summary: in this tutorial, you’ll learn about the Tkinter Checkbox widget and how to use it effectively. Introduction to the Tkinter checkbox widget A checkbox is a widget that allows you to check and uncheck. A checkbox can hold a value and invoke a callback when it’s checked or unchecked. Typically, you use…
Read more

Tkinter Separator

Tkinter Separator Summary: in this tutorial, you’ll learn how to use the Tkinter Separator widget to display a thin horizontal or vertical rule between groups of widgets. Introduction to the Tkinter Separator widget A separator widget places a thin horizontal or vertical rule between groups of widgets. To create a separator widget, you use the…
Read more

Tkinter ScrolledText

Tkinter ScrolledText Summary: in this tutorial, you’ll learn how to use the Tkinter ScrolledText widget which consists of a Text widget and a vertical Scrollbar widget. Introduction to the Tkinter ScrolledText widget So far, you’ve learned how to create a Text widget and how to link a vertical Scrollbar to the text widget. To make…
Read more

Tkinter Scrollbar

Tkinter Scrollbar Summary: in this tutorial, you’ll learn about the Tkinter Scrollbar widget and how to link it to a scrollable widget. Introduction to the Tkinter scrollbar widget A scrollbar allows you to view all parts of another widget whose content is typically larger than the available space. Tkinter scrollbar widget is not a part…
Read more

Tkinter Text

Tkinter Text Summary: in this tutorial, you’ll learn how to use the Tkinter Text widget to add a text editor to your application. Introduction to Tkinter Text widget The Text widget allows you to display and edit multi-line textarea with various styles. Besides the plain text, the Text widget supports embedded images and links. To…
Read more

Tkinter Place

Tkinter Place Summary: in this tutorial, you’ll learn about the Tkinter place geometry manager to precisely position widgets within its container using the (x, y) coordinate system. Introduction to Tkinter place geometry manager The Tkinter place geometry manager allows you to precisely position widgets within its container using the (x, y) coordinate system. To access…
Read more

Tkinter Grid

Tkinter Grid Summary: in this tutorial, you’ll learn how to use the Tkinter grid geometry manager to position widgets on a window. Introduction to the Tkinter grid geometry manager The grid geometry manager uses the concepts of rows and columns to arrange the widgets. The following shows a grid that consists of four rows and…
Read more

Tkinter Pack

Tkinter Pack Summary: in this tutorial, you’ll learn about the Tkinter pack geometry manager and how to use it to arrange widgets on a window. Introduction to the Tkinter pack geometry manager So far, you have learned how to use the pack() method to add widgets to a window. To arrange widgets on a window,…
Read more

Tkinter Entry

Tkinter Entry Summary: in this tutorial, you’ll learn how to use the Tkinter Entry widget to create a textbox. Introduction to Tkinter Entry widget The Entry widget allows you to enter a sing-line text. In Tkinter, to create a textbox, you use the Entry widget: textbox = ttk.Entry(container, **options) Code language: Python (python) In this…
Read more