Tkinter

Tkinter (tkinter in Python 3.x) claims to be [[Article description::"most portable GUI toolkit for Python" and is Python's "de-facto standard GUI (Graphical User Interface) package".]] Although there are several other graphical toolkits for Python, Tkinter is the one most often used in GUI development with Python.

tkinter uses internally.

make.conf
On Gentoo, getting Tkinter can be accomplished by enabling the 'tk' USE flag for Python.

Using this method of installation will pull the packages needed to successfully run Tkinter.

Simply modify package.use:

Emerge
Finally, re-emerge @world using this command:

That is it! Tkinter should now be installed.

Usage
When attempting to use Tkinter in Python code, depending on the version(s) of Python are currently installed on the system, import Tkinter might need performed in different ways:


 * When using Python 2.x.: use
 * using Python 3.x: use  (note the lower case T).