What is Python tkinter __python

Source: Internet
Author: User
What ' s tkinter?What is Tkinter.

The tkinter module ("Tk interface") is the standard Python interface to the TK GUI Toolkit from Scriptics (former Ly developed by Sun Labs).

The Tkinter module is the standard Python interface for the Tk GUI suite.

Both Tk and Tkinter are available on most Unix platforms, as as is on Windows and Macintosh systems. Starting with the 8.0 release, Tk offers native look and feel on all platforms.

TK and Tkinter are available on most UNIX platforms, Windows platforms, and Macintosh systems, starting with version 8.0, where TK provides native interface appearance on all platforms.

Tkinter consists of a number of modules. The Tk interface is provided by a binary extension module named _tkinter. This module contains the low-level interface to Tk, and should never is used directly by application. It is usually a shared library (or DLL) and but might in some cases to statically with the Python linked.

The tkinter contains a large number of modules. The TK interface is provided by a binary extension module called _tkinter. This module contains the underlying interface of TK, but these interfaces cannot be used directly by the application. It is usually a shared library (or dynamic link library), and in some cases can be used as a static link by the Python interpreter.

The public interface is provided through a number of Python modules. The most important interface module is the tkinter module itself. To use Tkinter, all your need to be to import the tkinter module:

The common interface is provided through a series of Python modules, and the most important interface is the Tkinter module itself. To use Tkinter, the need is to import the Tkinter module:

Import Tkinter

Or, more often:

Or:

From Tkinter Import *

The Tkinter module only exports widgets classes and associated constants, so you can safely use the from-in Form I n Most cases. If you are not prefer, but still want to save some typing, can use import-as:

In most cases, the Tkinter module can be used securely using the from-in format, because the Tkinter module only imports component classes and related constants. If you don't want to do this but want to knock down a few more characters, you can use Import-as:

Import Tkinter as Tk
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.