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.

make.conf
On Gentoo, getting Tkinter can be accomplished by directly emerging the package and/or by modifying your system's use flags. Since Tkinter is build on tcl and tk, both of which are closely related to Python, you can get the package by updating your system's global use flags and re-emerging Python. Using this method of installation will pull the packages needed to successfully run Tkinter.

First, modify make.conf:

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).