GUI and Desktop Modules
_tkinter
Low-level CPython extension linking Python to Tcl/Tk. Application code normally uses tkinter rather than calling this implementation layer directly. Availability and supported Tcl/Tk versions depend on the build. The example checks the exception identity without opening a window.
Formal Syntax & Structure
python syntaxpython
import _tkinterReturn Value
module
Module namespace available through import; import is a statement, not a value-returning expression.
Working Example
Example Snippetpython
import _tkinterimport tkinterprint(_tkinter.TclError is tkinter.TclError)