Python tkinter tutorial
A GUI is a Graphical User Interface, and early communication between humans and computers was in the form of text, for example, early DOS operating systems, Windows command prompt windows, Linux systems, and so on. This tutorial explains how to design a graphical user interface so that users can communicate with computers, and introduces designing related programs using the tkinter module included with Python.
tkinter is an open source graphical interface development tool, originally a GUI function library written in TCL (Tool Command Language), initially developed from 1991 with cross-platform features that can be executed on Linux, Windows, Mac OS and other operating systems.
This tkinter tool provides many graphical interfaces, for example, Label, Menu, Button, etc. Currently, this tkinter tool has been ported to the Python language and is a built-in module of the Python language.
This module is already installed at the same time when you install Python, so just import this module before using it, as shown below.
from tkinter import *
After that, we can use the tools in this module to design diverse GUI programs. Software versions change quickly, so before we officially get into the tkinter module for Python, we first describe how to know your version of tkinter.
List the tkinter version
import tkinter
print(tkinter.TkVersion)
Output:
Generally, the version after 8.5 is more robust.