As shown in the table below, GTK has a range of bindings for various languages [1] that implement some or all of its feature set. GTK 2 is no longer supported, meaning some languages below do not have current GTK support.
Language | Name | Supported? | License | Notes | ||||
---|---|---|---|---|---|---|---|---|
2.24 | 3.12 | 4.0 | GIR | Official | ||||
Ada | GtkAda | Partial | Partial | ? | Yes | No | GPL-3 | Supported up to 3.14. [3] [4] |
C | GTK | Yes | Yes | Yes | — | Yes | LGPL-2.1 | Native, no binding needed. |
C++ | gtkmm | Yes | Yes | Yes | No | Yes | LGPL-2.1 | |
C# and other CLI languages | Gtk# | Partial | No | ? | No | Yes | LGPL-2.1 | Support for GTK 2 is available up to 2.12. [5] |
GtkSharp | No | Yes | No | No | No | LGPL-2.1 | Support for GTK 3 is available up to 3.22. | |
Gir.Core | ? | ? | Partial | Partial | No | MIT | ||
Crystal | crystal-gobject | No | Yes | Partial | Yes | No | BSD | |
gtk4.cr | No | No | Yes | Yes | No | MIT | ||
D | GtkD | Yes | Yes | ? | Yes | No | LGPL-3 with exceptions [6] | Supported since 2.12 |
Erlang | gtknode | Partial | No | ? | No | No | MIT [7] | No, partly supported up to 2.16 |
Fortran | gtk-fortran | Partial | Partial | Partial | No | No | GPL-3 | Supported since 2.24. Supports GTK 3 and GTK 4. |
FreeBASIC | FreeBASIC GTK bindings | Yes | Partial | ? | No | No | LGPL-3 with exception | Supported up to 3.4 and since 2.8, integrated into the core distribution. |
Gambas | Gambas gb.gtk component | Yes | Partial | ? | No | No | GPL-2 | Secondary to the primary Qt components |
Genie | Genie | Yes | Yes | Yes | Yes | Yes | LGPL-2.1 | language written for GObject system |
Go | go-gir-generator | ? | ? | ? | Yes | No | GPL-3 | |
gotk3 | No | Partial | ? | No | No | ISC [8] | ||
Guile | guile-gnome | Partial | No | ? | No | No | GPL-2 | supported up to 2.12, partly supported on 2.14 |
Haskell | Gtk2Hs | Yes | Partial | ? | No | No | LGPL-2.1 | Gtk2Hs is a set of Haskell bindings to many of the libraries included in the GTK/GNOME platform. |
haskell-gi | No | Yes | Yes | Yes | No | LGPL-2.1 | Generate Haskell bindings for GObject Introspection capable libraries | |
J | J GTK addon | Partial | No | ? | No | No | GPL-3 | |
Java and other JVM languages | java-gnome | Yes | Yes | No | No | Yes | GPL-2 with exception | Unavailable on Microsoft Windows |
Julia | Gtk.jl | Yes | Yes | ? | No | No | MIT | Includes Glib support |
JavaScript | Gjs | Yes | Yes | Yes | Yes | Yes | MIT | GNOME wiki, based on Mozilla's SpiderMonkey |
Node-Gtk | No | Yes | Partial | Yes | No | MIT | Dynamic Node.js binding to GObject libraries using GObject-Introspection. | |
Seed | Yes | Yes | ? | Yes | Yes | LGPL-2.1 | GNOME wiki, based on WebKit's JavaScriptCore | |
Kotlin/Native | gtk-kt | No | Partial | Partial | Partial | No | AGPL-3.0 | Partial due to being In development, Usable to an extent. |
Lua | LGI | Partial | Yes | ? | Yes | No | MIT [9] | Dynamic Lua binding to GObject libraries using GObject-Introspection. |
lgob | No | Yes | ? | Yes | No | LGPL-3 | lgob provides bindings of GObject-based libraries for Lua 5.1. | |
Nim | gintro | No | Yes | Yes | Yes | No | MIT | High level GObject-Introspection based GTK3/GTK4 bindings for Nim language |
OCaml | LablGtk | Partial | Partial | ? | No | No | LGPL-2.1 with exception | No, supported up to 2.16 |
ooRexx | RexxGTK | Partial | No | ? | No | No | CPL | Yes, 2.0 or later |
Objective-C | CoreGTK | No | Partial | ? | No | No | LGPL-2.1 | |
ObGTK | Partial | No | ? | No | No | LGPL-2.1 | ||
Objective-C GTK | Partial | No | ? | No | No | LGPL-2.1 | ||
Pascal | Free Pascal gtk package | Yes | Yes | ? | No | No | LGPL-3 with exception | Supported up to 2.24, integrated into the core distribution. Gtk 3.0 bindings are being developed in the Lazarus-ccr project. [10] |
Perl | Gtk2-Perl | Yes | Yes | No | Yes | Yes | LGPL-2.1 | |
PHP | PHP-GTK | Partial | Partial [11] | ? | No | No | LGPL-2.1 | PHP until 5.2, GTK is GTK2 |
Prolog | PLGI | Partial | Yes | ? | Yes | No | LGPL-2.1 | Dynamic Prolog binding to GObject libraries using GObject-Introspection. |
Python | pgi | Partial | Partial | ? | Yes | No | LGPL-2.1 | GObject Introspection Bindings for PyPy. |
pygir-ctypes | Partial | Partial | ? | Yes | No | BSD | Pure Python GObject Introspection Repository (GIR) wrapper using ctypes. | |
PyGObject | Yes | Yes | Yes | Yes | Yes | LGPL-2.1 | since 2.22 [12] | |
PyGTK | Yes | No | No | No | Yes | LGPL-2.1 | static bindings, use PyGObject | |
R | RGtk2 | Partial | No | ? | No | No | GPL-2 | RGtk2.pdf |
Racket | gir | ? | ? | ? | Yes | No | MIT [13] | |
Ruby | GirFFI-Gtk | Partial | Partial | ? | Yes | No | LGPL-2.1 | GirFFI-based bindings for GTK. Supports both GTK+ 2 and GTK+ 3. |
Ruby-GNOME2 | Partial | Yes | Yes | No | No | MIT License | Partial, supported up to 2.12, partly supported since 2.14 [14] | |
Rust | gtk-rs | No | Yes | Yes | Yes | No | MIT [15] | |
gi-rust | No | Yes | ? | Yes | No | LGPL-2.1 | ||
Smalltalk | GNU Smalltalk GTK+ bindings | Yes | No | ? | No | No | GPL-2 | |
Smalltalk YX GTK plugin | Yes | No | ? | No | No | MIT | ||
SqueakGtk | Partial | No | ? | No | No | MIT | ||
Standard ML | Giraffe Library | No | Yes | ? | Yes | No | LGPL-2.1 | |
Tcl | Gnocl | Yes | No | ? | No | No | BSD | |
Vala | Vala | Yes | Yes | Yes | Yes | Yes | LGPL-2.1 | language written for GObject system |
Wrapl | Wrapl GTK+ module | Partial | No | ? | No | No | GPL-3 | No, but almost full up to 2.22 |
Fast Light Toolkit (FLTK) is a cross-platform widget library for graphical user interfaces (GUIs), developed by Bill Spitzak and others. Made to accommodate 3D graphics programming, it has an interface to OpenGL, but it is also suitable for general GUI programming.
Glade Interface Designer is a graphical user interface builder for GTK, with additional components for GNOME. In its third version, Glade is programming language–independent, and does not produce code for events, but rather an XML file that is then used with an appropriate binding. See List of language bindings for GTK for the available ones.
PyGTK is a set of Python wrappers for the GTK graphical user interface library. PyGTK is free software and licensed under the LGPL. It is analogous to PyQt/PySide and wxPython, the Python wrappers for Qt and wxWidgets, respectively. Its original author is GNOME developer James Henstridge. There are six people in the core development team, with various other people who have submitted patches and bug reports. PyGTK has been selected as the environment of choice for applications running on One Laptop Per Child systems.
PHP-GTK is a set of language bindings for the programming language PHP which allow GTK graphical user interface (GUI) applications to be written in PHP. PHP-GTK provides an object-oriented programming interface to GTK classes and functions. PHP-GTK partly supports GTK2, but GTK3 is unsupported.
The GLib Object System, or GObject, is a free software library providing a portable object system and transparent cross-language interoperability. GObject is designed for use both directly in C programs to provide object-oriented C-based APIs and through bindings to other languages to provide transparent cross-language interoperability, e.g. PyGObject.
GLib is a bundle of three low-level system libraries written in C and developed mainly by GNOME. GLib's code was separated from GTK, so it can be used by software other than GNOME and has been developed in parallel ever since.
Matplotlib is a plotting library for the Python programming language and its numerical mathematics extension NumPy. It provides an object-oriented API for embedding plots into applications using general-purpose GUI toolkits like Tkinter, wxPython, Qt, or GTK. There is also a procedural "pylab" interface based on a state machine, designed to closely resemble that of MATLAB, though its use is discouraged. SciPy makes use of Matplotlib.
The following tables list notable software packages that are nominal IDEs; standalone tools such as source-code editors and GUI builders are not included. These IDEs are listed in alphabetic order of the supported language.
Vala is an object-oriented programming language with a self-hosting compiler that generates C code and uses the GObject system.
Clutter is a discontinued GObject-based graphics library for creating hardware-accelerated user interfaces. Clutter is an OpenGL-based 'interactive canvas' library and does not contain any graphical control elements. It relies upon OpenGL (1.4+) or OpenGL ES for rendering,. It also supports media playback using GStreamer and 2D graphics rendering using Cairo.
PyChess is a free software chess client developed for GNU. It allows users to play offline or online via the Free Internet Chess Server (FICS). PyChess also incorporates a built-in chess engine, which in contrast to most other chess AIs is written in the Python language and focuses more on fun of play than raw strength. For more advanced users, PyChess allows for virtually any other external chess engine to be used with it.
GTK is a free software cross-platform widget toolkit for creating graphical user interfaces (GUIs). It is licensed under the terms of the GNU Lesser General Public License, allowing both free and proprietary software to use it. It is one of the most popular toolkits for the Wayland and X11 windowing systems.
Seed is a JavaScript interpreter and a library of the GNOME project to create standalone applications in JavaScript. It uses the JavaScript engine JavaScriptCore of the WebKit project. It is possible to easily create modules in C.
Spyder is an open-source cross-platform integrated development environment (IDE) for scientific programming in the Python language. Spyder integrates with a number of prominent packages in the scientific Python stack, including NumPy, SciPy, Matplotlib, pandas, IPython, SymPy and Cython, as well as other open-source software. It is released under the MIT license.
wxPHP is an extension the programming language PHP that wraps the wxWidgets library, which allows writing cross-platform software desktop applications that make use of the native graphical components available to the different platforms. It supports the three major operating systems: Windows, Linux, and macOS by using PHP. Applications are written in PHP, which is an interpreted language. Thus, it needs no intermediate compiling step to run an application, if the PHP interpreter has the extension available.
GNOME Builder is a general purpose integrated development environment (IDE) for the GNOME platform, primarily designed to aid in writing GNOME-based applications. It was initially released on March 24, 2015. The application's tagline is "A toolsmith for GNOME-based applications".
GNOME Terminator is a free and open-source terminal emulator for Linux programmed in Python, licensed under GPL-2.0-only. The goal of the project is to produce a useful tool for arranging terminals. It is inspired by programs such as gnome-multi-term, QuadKonsole, etc. In that the main focus is arranging terminals in grids. Terminator packages exist for Arch, Debian/Ubuntu, Fedora, OpenSUSE, Gentoo, Snap, FreeBSD, OpenBSD. In 2017 took second place in voting at opensource.com, after Gnome Terminal.
Qalculate! is an arbitrary precision cross-platform software calculator. It supports complex mathematical operations and concepts such as derivation, integration, data plotting, and unit conversion. It is a free and open-source software released under GPL v2.
{{cite web}}
: CS1 maint: numeric names: authors list (link)