Skip to end of metadata
Go to start of metadata

Tkinter is a Python binding to the Tk GUI toolkit. It is the standard Python interface to the Tk GUI toolkit, and is Python's de facto standard GUI.

Tkinter is included with standard Linux, Microsoft Windows and Mac OS X installs of Python. The name Tkinter comes from Tk interface.


Unfortunately Tkinter is not installed on CentOS 7 as a part of Python standard package, you can install it as following:

# yum install tkinter
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: data.aonenetworks.kr
 * epel: hk.mirrors.thegigabit.com
 * extras: data.aonenetworks.kr
 * nux-dextop: mirror.li.nux.ro
 * remi-php56: mirror.bebout.net
 * remi-php72: mirror.bebout.net
 * remi-safe: mirror.bebout.net
 * updates: data.aonenetworks.kr
Resolving Dependencies
--> Running transaction check
---> Package tkinter.x86_64 0:2.7.5-86.el7 will be installed
--> Processing Dependency: python = 2.7.5-86.el7 for package: tkinter-2.7.5-86.el7.x86_64
--> Processing Dependency: libtk8.5.so()(64bit) for package: tkinter-2.7.5-86.el7.x86_64
--> Processing Dependency: libTix.so()(64bit) for package: tkinter-2.7.5-86.el7.x86_64
--> Running transaction check
---> Package python.x86_64 0:2.7.5-80.el7_6 will be updated
--> Processing Dependency: python(x86-64) = 2.7.5-80.el7_6 for package: python-devel-2.7.5-80.el7_6.x86_64
---> Package python.x86_64 0:2.7.5-86.el7 will be an update
--> Processing Dependency: python-libs(x86-64) = 2.7.5-86.el7 for package: python-2.7.5-86.el7.x86_64
---> Package tix.x86_64 1:8.4.3-12.el7 will be installed
---> Package tk.x86_64 1:8.5.13-6.el7 will be installed
--> Running transaction check
---> Package python-devel.x86_64 0:2.7.5-80.el7_6 will be updated
---> Package python-devel.x86_64 0:2.7.5-86.el7 will be an update
--> Processing Dependency: python2-rpm-macros > 3-30 for package: python-devel-2.7.5-86.el7.x86_64
--> Processing Dependency: python-rpm-macros > 3-30 for package: python-devel-2.7.5-86.el7.x86_64
---> Package python-libs.x86_64 0:2.7.5-80.el7_6 will be updated
---> Package python-libs.x86_64 0:2.7.5-86.el7 will be an update
--> Running transaction check
---> Package python-rpm-macros.noarch 0:3-32.el7 will be installed
--> Processing Dependency: python-srpm-macros for package: python-rpm-macros-3-32.el7.noarch
---> Package python2-rpm-macros.noarch 0:3-32.el7 will be installed
--> Running transaction check
---> Package python-srpm-macros.noarch 0:3-32.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                  Arch         Version                 Repository  Size
================================================================================
Installing:
 tkinter                  x86_64       2.7.5-86.el7            base       327 k
Installing for dependencies:
 python-rpm-macros        noarch       3-32.el7                base       8.8 k
 python-srpm-macros       noarch       3-32.el7                base       8.4 k
 python2-rpm-macros       noarch       3-32.el7                base       7.7 k
 tix                      x86_64       1:8.4.3-12.el7          base       254 k
 tk                       x86_64       1:8.5.13-6.el7          base       1.4 M
Updating for dependencies:
 python                   x86_64       2.7.5-86.el7            base        95 k
 python-devel             x86_64       2.7.5-86.el7            base       398 k
 python-libs              x86_64       2.7.5-86.el7            base       5.6 M

Transaction Summary
================================================================================
Install  1 Package  (+5 Dependent packages)
Upgrade             ( 3 Dependent packages)

Total download size: 8.1 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/9): python-2.7.5-86.el7.x86_64.rpm                      |  95 kB   00:00
(2/9): python-libs-2.7.5-86.el7.x86_64.rpm                 | 5.6 MB   00:00
(3/9): python-rpm-macros-3-32.el7.noarch.rpm               | 8.8 kB   00:00
(4/9): python-srpm-macros-3-32.el7.noarch.rpm              | 8.4 kB   00:00
(5/9): python2-rpm-macros-3-32.el7.noarch.rpm              | 7.7 kB   00:00
(6/9): tix-8.4.3-12.el7.x86_64.rpm                         | 254 kB   00:00
(7/9): tk-8.5.13-6.el7.x86_64.rpm                          | 1.4 MB   00:00
(8/9): python-devel-2.7.5-86.el7.x86_64.rpm                | 398 kB   00:00
(9/9): tkinter-2.7.5-86.el7.x86_64.rpm                     | 327 kB   00:00
--------------------------------------------------------------------------------
Total                                               13 MB/s | 8.1 MB  00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : python-libs-2.7.5-86.el7.x86_64                             1/12
  Updating   : python-2.7.5-86.el7.x86_64                                  2/12
  Installing : 1:tk-8.5.13-6.el7.x86_64                                    3/12
  Installing : 1:tix-8.4.3-12.el7.x86_64                                   4/12
  Installing : python2-rpm-macros-3-32.el7.noarch                          5/12
  Installing : python-srpm-macros-3-32.el7.noarch                          6/12
  Installing : python-rpm-macros-3-32.el7.noarch                           7/12
  Updating   : python-devel-2.7.5-86.el7.x86_64                            8/12
  Installing : tkinter-2.7.5-86.el7.x86_64                                 9/12
  Cleanup    : python-devel-2.7.5-80.el7_6.x86_64                         10/12
  Cleanup    : python-2.7.5-80.el7_6.x86_64                               11/12
  Cleanup    : python-libs-2.7.5-80.el7_6.x86_64                          12/12
  Verifying  : python-devel-2.7.5-86.el7.x86_64                            1/12
  Verifying  : python-2.7.5-86.el7.x86_64                                  2/12
  Verifying  : python-srpm-macros-3-32.el7.noarch                          3/12
  Verifying  : tkinter-2.7.5-86.el7.x86_64                                 4/12
  Verifying  : 1:tix-8.4.3-12.el7.x86_64                                   5/12
  Verifying  : 1:tk-8.5.13-6.el7.x86_64                                    6/12
  Verifying  : python-libs-2.7.5-86.el7.x86_64                             7/12
  Verifying  : python-rpm-macros-3-32.el7.noarch                           8/12
  Verifying  : python2-rpm-macros-3-32.el7.noarch                          9/12
  Verifying  : python-devel-2.7.5-80.el7_6.x86_64                         10/12
  Verifying  : python-2.7.5-80.el7_6.x86_64                               11/12
  Verifying  : python-libs-2.7.5-80.el7_6.x86_64                          12/12

Installed:
  tkinter.x86_64 0:2.7.5-86.el7

Dependency Installed:
  python-rpm-macros.noarch 0:3-32.el7    python-srpm-macros.noarch 0:3-32.el7
  python2-rpm-macros.noarch 0:3-32.el7   tix.x86_64 1:8.4.3-12.el7
  tk.x86_64 1:8.5.13-6.el7

Dependency Updated:
  python.x86_64 0:2.7.5-86.el7           python-devel.x86_64 0:2.7.5-86.el7
  python-libs.x86_64 0:2.7.5-86.el7

Complete!