Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

Chapter 3. Installing Tcl/Tk


Tcl is a dynamic programming language, while Tk is a graphical user interface (GUI) toolkit. They provide a powerful and easy-to-use platform for developing cross-platform applications with graphical interfaces. As a dynamic programming language, 'Tcl' provides simple and flexible syntax for writing scripts. The tcl package provides the interpreter for this language and the C library. You can use Tk as GUI toolkit that provides a set of tools and widgets for creating graphical interfaces. You can use various user interface elements such as buttons, menus, dialog boxes, text boxes, and canvas for drawing graphics. Tk is the GUI for many dynamic programming languages.

For more information about Tcl/Tk, see the Tcl/Tk manual or Tcl/Tk documentation web page.

3.1. Installing Tcl

The default Tcl implementation is usually installed by default. To install it manually, use the following procedure.

Procedure

  • To install Tcl, use:

    # dnf install tcl
    Copy to Clipboard Toggle word wrap

Verification

  • To verify the Tcl version installed on your system, run the interpreter tclsh:

    $ tclsh
    Copy to Clipboard Toggle word wrap
  • In the interpreter run this command:

    % info patchlevel
    8.6
    Copy to Clipboard Toggle word wrap
  • You can exit the interpreter interface by pressing Ctrl+C

3.2. Installing Tk

The default Tk implementation is usually installed by default. To install it manually, use the following procedure.

Procedure

  • To install Tk, use:

    # dnf install tk
    Copy to Clipboard Toggle word wrap

Verification

  • To verify the Tk version installed on your system, run the window shell wish. You need to be running a graphical display:

    $ wish
    Copy to Clipboard Toggle word wrap
  • In the shell run this command:

    % puts $tk_version
    8.6
    Copy to Clipboard Toggle word wrap
  • You can exit the interpreter interface by pressing Ctrl+C
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2026 Red Hat
Nach oben