0 Beginner's Tutorials and samples

In these tutorials and samples we use JavaScript and GTK+. These tutorials and samples expect you to be familiar with the syntax of JavaScript, if not, read Eloquent JavaScript or your preferred guide to JavaScript.

Code samples

To run the code samples:

  1. Copy and paste the code into filename.js

  2. In the terminal type:

    gjs filename.js

Display widgets

TreeView widget

Selectors

File selectors

Font selectors

Color Selectors

Layout containers

Ornaments

Scrolling

Miscellaneous

Exercises