Tkinter is a built-in GUI library for python installation. It is cross-platform. Although it is simple, I have seen many people on the internet saying that it is boring to learn this GUI library. Now there are so many good GUI Libraries, however, I think the existence is reasonable and there is always a reason for learning. I want to use this GUI library to learn simple GUI interface design and Python knowledge about object-oriented programming.
Tkinter includes some small plug-ins, as described below:
Plug-ins and instructions
Clickable button
Canvas is used to draw or display areas of an image.
The checkbutton clickable box. Its status can be selected or unselected.
Entry single-line text box for users to enter data
Frame is used to hold containers of other small plug-ins
Label is used to display a single line of text
ListBox drop-down list available for users
Menu drop-down menu
Message is used to display multiple lines of text
Menu items in the menubutton drop-down menu
Text multi-line text box for user input
Topleve L
Extra window
Variable in tkinter
Because the strings, integers, floating-point numbers, and boolean values in Python are unchangeable, tkinter comes with some types that can be updated locally and can notify related plug-ins when their values change. The following describes the immutable types in Python and the variable types in tkinter.
Immutable type and variable type
Int intvar
String stringvar
Bool booleanvar
Double doublevar
The variable type value is set and obtained through the set and get methods.