Python tkinter includes plugin Types & Variable variables in tkinter

Source: Internet
Author: User

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.

Related Article

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.