I have created a new repository:
These gtk-fortran applications demonstrate how you can write an application that can work both with a GTK 4 graphical user interface (GUI) and as a simple command line executable. You can therefore enjoy your graphical application on your machine, and launch it on a machine where gtk-fortran is not installed, or launch it on a distant machine via an ssh connection. You may also want to run a long computation without its GUI to reach full speed, as there can be some performance impediment when you draw heavily on screen.
These examples are under MIT license (contrarily to the gtk-fortran repository which is under GPL), so you can begin working on your own gtk-fortran application without worrying about license problems. You can pick an app and adapt it to your own needs.
You will find two applications:
my_fast_appis computing and drawing a Lorenz attractor, in less than one second.
my_long_appis drawing a Buddhabrot in a few minutes. You need to manage the GUI main loop to keep it reactive.
More information in the
README.md file of the project.
The screenshots can be seen here: Tutorial 3 · vmagnin/gtk-fortran Wiki · GitHub