background preloader

_tkinter (Optional Dependencies Python)

Facebook Twitter

"or Python 2.7:

You don't need to download Tkinter - it's an integral part of all Python distributions (except binary distributions for platforms that don't support Tcl/Tk).

as it says here. In my case, on Windows, what helped was reinstalling the Python distribution.

Probably a long time ago I had unchecked the "Tcl/Tk" installation feature. After reinstalling all works fine and I can import _tkinter and import Tkinter."
. TkInter. Tkinter is Python's de-facto standard GUI (Graphical User Interface) package.


It is a thin object-oriented layer on top of Tcl/Tk. Tkinter is not the only GuiProgramming toolkit for Python. It is however the most commonly used one. CameronLaird calls the yearly decision to keep TkInter "one of the minor traditions of the Python world. " Linux - Install tkinter for Python. Download Tcl/Tk Sources. Binary Releases For other ways to obtain Tcl/Tk (such as binary distributions), see the main Tcl/Tk page.

Download Tcl/Tk Sources

Source Releases Each of these files is explained in more detail below. Other versions of the source distributions are available at SourceForge.