[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 498: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 393: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 393: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 393: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 393: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 393: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 393: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 393: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 393: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 393: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 393: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4293: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3494)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4295: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3494)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4296: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3494)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4297: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3494)
www.GIMP-Atelier.org • Thema anzeigen - Kurs: Python für GIMPer
Seite 1 von 1

Kurs: Python für GIMPer

BeitragVerfasst: Mo 1. Nov 2010, 09:46
von Hans

Vorwort

BeitragVerfasst: Mo 1. Nov 2010, 09:48
von Hans
Wie viele wissen, komme ich aus der Ecke der Programmierer und befasse mich angeblich mit so ziemlich mit allen Skriptsprachen, welche man unter UNIX zum Laufen bringen kann. Es hat mich von Anfang an fasziniert, dass da ein Programm kommt, welches man mal so mir nichts dir nichts um eigene Funktionen erweitern kann.

Aber die ersten Skripts waren alle in Scheme, einem LISP Dialekt, geschrieben. Wenn man Pascal und C kennt, dann fragt man sich ob bei dieser Sprache ein Klammeraffe am Werk gewesen ist. Ich kann mich an die Scheme Syntax einfach nicht gewöhnen. Zu Beginn meines GIMP Schaffens war ich schon recht kräftig in Sachen Python unterwegs. Die Möglichkeiten dieser Skriptsprache sind einfach fantastisch. Lediglich die lasche Typenbehandlung stört mich. Was lag also näher, als sich einmal in pygimp zu versuchen? Der Versuch endete kläglich! Es fehlte mir an Zeit und vor allem an einführender Literatur.

Da ich jetzt etwas mehr Zeit zur Verfügung habe, finde ich es angebracht, mal eine kleine Einleitung zu schreiben. Ich gehe davon aus, dass ein Grundwissen in Python vorhanden ist. Lediglich die wichtigsten Eigenheiten dieser Sprache werde ich erörtern.

Einer der wesentlichen Merkmale von Python ist, dass die Einrückung ein wesentlicher Bestandteil von Python ist. Alles was untereinander in einer Spalte steht, wird als Block ausgeführt. Bei der Erstellung von Code ist deshalb darauf zu achten, dass nicht einmal Tabulatoren und ein anderes Mal Leerzeichen verwendet werden. Dieses führt mit ziemlicher Sicherheit dazu, dass das Skript nicht auf allen PC läuft. Der Interpreter von Python arbeitet übrigens case sensitive, d. h. er unterscheidet zwischen Groß- und Kleinschreibung.

Windows Benutzern wird dringend empfohlen, sich einen guten Editor wie zu besorgen. Alternativ kann ein Quellcode auch über IDLE erstellt werden. Dieses ist Bestandteil von Python. Die Editoren von Microsoft sind nicht geeignet.

Für Windows Benutzer ist außerdem die Verwendung eines Packprogramms wie angeraten.

In allen Kursen wird der Sourcecode immer als HTML mit Zeilennummerierung und als .zip Datei angeboten. Der HTML Code wird für die Besprechung der Programme benötigt. Falls hier Fragen aufkommen, wie ich die HTML Datei erstellt habe, so ist das ganz einfach zu beantworten. Ich habe dafür verwendet









Kapitel 1: Procedural Database (pdb)

BeitragVerfasst: Mo 1. Nov 2010, 09:49
von Hans

Kapitel 2: Hallo GIMP-Atelier.org

BeitragVerfasst: Mo 1. Nov 2010, 22:25
von Hans

Kapitel 3: Neue Datei

BeitragVerfasst: Di 2. Nov 2010, 09:19
von Hans

Kapitel 4: Neue Ebene

BeitragVerfasst: Di 2. Nov 2010, 12:09
von Hans

Kapitel 5 : Wir zeichnen endlich etwas

BeitragVerfasst: Fr 5. Nov 2010, 13:29
von Hans