Python Tkinter contains plug-in types & variable variables in Tkinter __python

Source: Internet
Author: User

Tkinter is the installation of Python on its own GUI library, Cross-platform, although simple, I see a lot of people on the Internet to learn this GUI library is not interesting, now so many good GUI library, but I think there is a reasonable, there is always a reason for learning. I would like to take this GUI library to learn a simple GUI interface design and python knowledge of object-oriented programming.

Tkinter contains a few widgets, as described below:

Plug-ins and Descriptions

Button clickable buttons

Canvas the area used to draw or display image images

Checkbutton a clickable box whose status can be selected or unselected

Entry a single-line text box that users can enter data into

Frame for containers that host other small plug-ins

Label is used to display a single line of text

ListBox for users to select a Drop-down list

Menu Pull-down Menus

Message used to display multiple lines of text

menu items in the Menubutton dropdown

Text A multiline text box for the user to enter data

Topleve L Extra Window


Variable variables in the Tkinter

Because the strings, integers, floating-point numbers, and Boolean values in Python are immutable, Tkinter comes with some types that can be updated in place and can notify the relevant plug-ins when their values change. The following is the immutable type in Python and the mutable type in Tkinter.

immutable types and mutable types

int Intvar

String Stringvar

BOOL Booleanvar

Double Doublevar

And the value of the mutable type is set and obtained by 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.