-
Notifications
You must be signed in to change notification settings - Fork 44
Tutorials
vmagnin edited this page May 11, 2022
·
50 revisions
In this section of the documentation, you will find tutorials to get started with gtk-fortran and GTK. Most tutorials are for GTK 4, but with the GTK 3 modifications given when possible.
- Installation: everything needed to install gtk-fortran on your machine (branches, dependencies) with detailed instructions for Linux, Windows, macOS and FreeBSD.
- My first gtk-fortran application - My first gtk-fortran application. You will create a GtkApplication with a window, some widgets and how to draw a bitmap image in Fortran.
- Drawing an image in a PNG file (without GUI) - Drawing an image in a PNG file (without GUI). You will draw in a PNG file using only the GdkPixbuf library: only 45 lines of Fortran code to draw a beautiful coloured Sierpinski Triangle!
- How to write a program also usable without GUI - How to write a gtk-fortran application that can be build with or without its GUI, in order to be executable on a machine where gtk-fortran is not installed.
- How-to use Glade3 and gtkf-sketcher to build more easily a complicated GUI (GTK 3 only).
- How to use gtk-fortran as a fpm dependency.
- How to start my own project from a gtk-fortran example?.
- Debugging with GtkInspector : inspect and edit your GUI on the fly.
- Learning from examples.
- Programming in Modern Fortran - A HyperText-based introduction to programming in Fortran 2003, 2008, and 2018 on Unix. In the "User Interfaces, Graphics, and Plotting" chapter, you will find gtk-fortran.
- How to use GTK-Fortran with Code::Blocks IDE.
- The awesome Michael B. YouTube channel offers more than two hundreds video tutorials on GTK 3, and now GTK 4 (C language) !
- Gtk4 Tutorial for beginners: using C language.
- GTK4 for Graphical User Interfaces, with the Nim Programming Language: a "book" about GTK 4 (around ~67 printed pages).
- GtkDcoding - Musings of a GtkD Coder
- (fr) Cours d'interfaces graphiques d'Edouard Thiel (Université d'Aix-Marseille).
- Concerning designing a GUI, see GNOME Human Interface Guidelines.
- Installation
- My first gtk-fortran application
- Drawing an image in a PNG file (without GUI)
- A program also usable without GUI
- Using Glade3 and gtkf-sketcher (GTK 3)
- Using gtk-fortran as a fpm dependency
- Debugging with GtkInspector
- Learning from examples
- Video tutorials
- How to start my own project from a gtk-fortran example
- git basics
- CMake basics
- Alternatives to CMake
- How to migrate to GTK 4
- How to contribute to gtk-fortran
- How to hack the cfwrapper