Ekaterina Gerasimova
kittykat3756@gmail.com 2013
Gordon Hill
caseyweederman@gmail.com 2013
Include bindings necessary to run your script.
Mario Blättermann
mario.blaettermann@gmail.com 2009-2012
Christian Kirbach
christian.kirbach@gmail.com 2011, 2012.
Aljosha Papsch
al@rpapsch.de 2012

# Gjs und Gtk

# Erste Schritte mit GNOME

Gjs is a JavaScript binding for GNOME and can be used to interact with Gtk. Gtk is a toolkit for creating graphical user interfaces.

Open a text editor and paste in the lines of code. The complete script is available in the Summary.

Create an `object` using your `class` and call the `run()` method:

Call the Gjs JavaScript binding. This instructs the shell to run this script with Gjs.

#!/usr/bin/gjs

Import `lang` for the `bind` function and `gi.Gtk` for `Gtk` functions.

const Lang = imports.lang; const Gtk = imports.gi.Gtk;