Susanna Huhtanen
ihmis.suski@gmail.com 2012
Marta Maria Casetti
mmcasettii@gmail.com 2013
Ein Leitfaden für Anfänger zum Schreiben von GNOME-Anwendungen in JavaScript, inklusive Codebeispielen und praktischen Übungen.
Mario Blättermann
mario.blaettermann@gmail.com 2011, 2013, 2016, 2018, 2021

# Tutorial für Anfänger mit Codebeispielen

      JavaScript is one of the most popular programming languages on the web. It's not just for the web, though. If you have even a basic understanding of JavaScript, you can write full-fledged applications for GNOME. GNOME Documents is written in JavaScript, and so is GNOME Shell, the most basic part of GNOME.
      GNOME Shell is what you see when you click on "Activities" in the top-left corner of your screen. It also controls the clock and the rest of the top panel. Besides showing how you to write GNOME applications, these tutorials will also show you how to use JavaScript to write GNOME Shell extensions, which give it new features or change the way it does things.

# Erste Schritte

These tutorials are designed for people who already know how to write in JavaScript, and who have GNOME installed on their computers already, but who are new to developing GNOME applications. If you don't already know JavaScript, or if you need help getting GNOME set up, take a look at these resources first:

Eloquent JavaScript is a free, Creative Commons-licensed book, which explains the basics of JavaScript programming. Since you won't be writing JavaScript for the web, you only need to read up to chapter 10 or so.

Download GNOME as part of a distribution, like Fedora, openSUSE, or Ubuntu. Each distribution has its own instructions for how to get GNOME.

Richten Sie gedit zum Schreiben von Anwendungen ein. Gedit, der Texteditor von GNOME, wird oft einfach »Texteditor« genannt.

# Einführungen

# Codebeispiele

These samples show how to use widgets in your GNOME applications. Each one demonstrates a complete application which showcases the featured widget. At the end of each sample, you will find links to more detailed reference material.

So führen Sie die Codebeispiele aus:

Copy and paste the code into filename.js

Geben Sie Folgendes im Terminal ein:

    gjs Dateiname.js

## Fenster

## Widgets anzeigen

## Knöpfe und Auslöser

## Numerische und Textdateneingabe

## Ein mehrzeiliger Texteditor

## Menü-, Kombinationsfeld- und Werkzeugleisten-Widgets

## TreeView-Widget

## Auswähler

### Dateiwähler

### Schriftwähler

### Farbwähler

## Layout-Container

## Ornamente

## Bildlauf

## Verschiedenes

# Übungen