2017年10月2日 星期一

What's Tkinter?


The Tkinter module (“Tk interface”) is the standard Python interface to the Tk GUI toolkit from Scriptics (formerly developed by Sun Labs).


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 you need to do is to import the Tkinter module:
import Tkinter
Or, more often:
from Tkinter import *
The Tkinter module only exports widget classes and associated constants, so you can safely use the from-in form in most cases. If you prefer not to, but still want to save some typing, you can use import-as:
import Tkinter as Tk


#In Python 2, it is called Tkinter, while in Python 3

沒有留言:

張貼留言

Adam DO*5 DI*12 + Python + Node-Red

 Adam DO*5 DI*12 + Python + Node-Red 為了讓您的系統穩定運行,建議的最終接線如下: 功能 ADAM 端子 對接目標 DI 輸入 (乾接點) DI0 ~ DI11 開關的一端 DI 共同端 DI.COM 開關的另一端 (接 GND) DO 輸出...