Create GTK4 apps with JS

Hello! Are there docs to use Javascript with GTK4? In GJS I only find GTK3.
Thanks!

You can read the documentation for GTK3—the concepts remain mostly the same.

The GTK4 reference is available in the same place as the GTK3 one.

1 Like

There’s some example code for a GTK4 app in JS from my talk at LAS this year: https://gitlab.gnome.org/ptomato/bloatpad

1 Like

Here is a minimal example that is shipped with gtk:

https://gitlab.gnome.org/GNOME/gtk/-/blob/master/examples/labels.js

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.