List of language bindings for GTK

As shown in the table below, GTK has a range of bindings for various programming languages that implement some or all of its feature set. GTK 2 is unsupported now, so some languages below lack current GTK support.

  • GObject (GOB) was initially written as a central component of GTK, but outsourced into GLib.
  • GObject Introspection is a middleware layer between C libraries (using GObject) and language bindings, e.g. PyGObject uses this, while PyGTK does not.
  • Official GNOME Bindings follow the GNOME release schedule which guarantees API stability and time-based releases.
  • Glade Interface Designer
Language Name Supported? License Notes
2.24 3.12 4.0 GIR
Ada GtkAda PartialPartial ?Yes GPL-3 Supported up to 3.14.
C GTK YesYesYesN/a LGPL-2.1 Native, no binding needed.
C++ gtkmm YesYesYesNo LGPL-2.1
C# and other CLI languages GtkSharp NoYes NoNo LGPL-2.1 Support for GTK 3 is available up to 3.22.
Gir.Core NoNo PartialPartial MIT
Crystal crystal-gobject NoYes PartialYes BSD
gtk4.cr NoNo YesYes MIT
D GtkD YesYes NoYes LGPL-3 with exceptions Supported since 2.12
Erlang gtknode PartialNo NoNo MIT No, partly supported up to 2.16
Fortran gtk-fortran PartialPartialPartialNo GPL-3 Supported since 2.24. Supports GTK 3 and GTK 4.
FreeBASIC FreeBASIC GTK bindings YesPartial NoNo LGPL-3 with exception Supported up to 3.4 and since 2.8, integrated into the core distribution.
Gambas Gambas gb.gtk component YesPartial ?No GPL-2 Secondary to the primary Qt components
Genie Genie YesYes YesYes LGPL-2.1 language written for GObject system
Go go-gir-generator ?? ?Yes GPL-3
gotk3 NoPartial ?No ISC
Guile guile-gnome PartialNo ?No GPL-2 supported up to 2.12, partly supported on 2.14
Haskell Gtk2Hs YesPartial ?No LGPL-2.1 Gtk2Hs is a set of Haskell bindings to many of the libraries included in the GTK/GNOME platform.
haskell-gi NoYes YesYes LGPL-2.1 Generate Haskell bindings for GObject Introspection capable libraries
J J GTK addon[link removed] PartialNo ?No GPL-3
Java and other JVM languages java-gnome YesYes NoNo GPL-2 with exception Unavailable on Microsoft Windows
Java-GI NoNo YesYes LGPL-2.1 Works with OpenJDK 25 or later
Julia Gtk4.jl YesYes YesNo MIT Includes Glib support
JavaScript Gjs YesYes YesYes MIT GNOME wiki, based on Mozilla's SpiderMonkey
Node-Gtk NoYes PartialYes MIT
Seed YesYes ?Yes LGPL-2.1 GNOME wiki, based on WebKit's JavaScriptCore
Kotlin/Native gtk-ktNoPartialPartialPartial AGPL-3.0
gtk-knNoNoNoPartial LGPL-3
Lua LGI PartialYes YesYes MIT
lgob NoYes ?Yes LGPL-3
Nim gintroNoYes YesYes MIT
OCaml LablGtk PartialPartial ?No LGPL-2.1 with exception Supported up to 2.16
ooRexx RexxGTK PartialNo ?No CPL Yes, 2.0 or later
Objective-C CoreGTK NoPartial ?No LGPL-2.1
ObGTK PartialNo ?No LGPL-2.1
Objective-C GTK PartialNo ?No LGPL-2.1
Pascal Free Pascal gtk package YesYes ?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.
Perl Gtk2-Perl YesYes NoYes LGPL-2.1
PHP PHP-GTK PartialPartial ?No LGPL-2.1 PHP until 5.2, GTK is GTK2
Prolog PLGI PartialYes ?Yes LGPL-2.1
Python pgi PartialPartial ?Yes LGPL-2.1 GObject Introspection Bindings for PyPy.
pygir-ctypes PartialPartial ?Yes BSD
PyGObject YesYes YesYes LGPL-2.1 since 2.22
PyGTK YesNo NoNo LGPL-2.1
R RGtk2 PartialNo ?No GPL-2 RGtk2.pdf Archived 2016-03-09 at the Wayback Machine
Racket gir ?? ?Yes MIT
Ruby GirFFI-Gtk PartialPartial ?Yes LGPL-2.1
Ruby-GNOME2 Archived 2008-08-21 at the Wayback Machine PartialYes YesNo MIT License Partial, supported up to 2.12, partly supported since 2.14
Rust gtk-rs NoYes YesYes MIT
gi-rust NoYes ?Yes LGPL-2.1
Smalltalk GNU Smalltalk GTK+ bindings YesNo ?No GPL-2
Smalltalk YX GTK plugin YesNo ?No MIT
SqueakGtk PartialNo ?No MIT
Standard ML Giraffe Library NoYes ?Yes LGPL-2.1
Tcl Gnocl YesNo ?No BSD
Vala Vala YesYes YesYes LGPL-2.1 Language written for GObject system
Wrapl Wrapl GTK+ module PartialNo ?No GPL-3 No, but almost full up to 2.22