Install Tk

To get a set of tools and widgets for creating graphical user interfaces (GUIs), install the Tk toolkit. You can use Tk for different dynamic applications. The default Tk toolkit implementation is usually installed by default. However, you can also install it manually.

Procedure

Install the Tk:
# dnf install tk

Results

  • To verify the Tk version installed on your system, run the window shell wish. You need to be running a graphical display:
    $ wish
  • In the shell run this command:
    % puts $tk_version
    8.6
  • You can exit the interpreter interface by pressing Ctrl+C