All tutorials simply import tkinter
,
I am wondering, though, why not import _tkinter
? If my understanding is correct, _tkinter
is the actual library in cpython and tkinter
is the interface or API.
I am simply trying to grasp the paradigm as I read through some of the tkinter source code. It seems there is some python black magic afoot.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…