1. Introduction:
The Python standard library tkinter is a further sub-assembly of Tcl/Tk. It works with tkinter. ttk and tkinter. Tik to provide powerful cross-platform GUI programming functions. As an extension, tkinter. ttk provides ComboBox, progressbar, Treeview, and other components, tkinter. scrolledtext provides text boxes with scroll bars, including MessageBox, commondialog, dialog, colorchooser, simpledialog, and filedialog.
2. Common tkinter Components
Component name |
Description |
Button |
Button control; display the button in the program. |
Canvas |
Canvas control; displays graphical elements such as lines or text |
Checkbutton |
Multi-choice box control; used to provide a multi-choice box in the program |
Entry |
Input control; used to display simple text content |
Frame |
Frame control. A rectangle area is displayed on the screen and is used as a container. |
Label |
Label control; displays text and bitmap |
ListBox |
The ListBox widget is used to display a string list to users. |
Menu |
Menu Control; display menu bar, drop-down menu, and pop-up menu |
Menubutton |
Menu button control, because the menu item is displayed. |
Message |
Message control, used to display multiple lines of text, similar to label |
Radiobutton |
Single-choice button control; displays the status of a Single-choice button |
Scale |
Range control. A numeric scale is displayed, which is a numerical range within the output range. |
Scrollbar |
Scroll bar control, used when the content exceeds the visible area, such as the list box .. |
Toplevel |
Container control. It is used to provide a separate dialog box, which is similar to frame. |
Text |
Text control; used to display multi-line text |
Spinbox |
The input control is similar to the entry, but the input range value can be specified. |
Panedwindow |
Panedwindow is a window layout management plug-in that can contain one or more child controls. |
Labelframe |
Is a simple container control. Common and complex window la S. |
Tkmessagebox |
Display the message box of your application. |
Tkinter learning 01