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.