Tkinter learning 01

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.