The structure of the Basic-Code

A GtkBasic program internally runs two programs simultaneously.

The Gtk-mainloop displays the windows, and receives and emits events.
For example, if a button is clicked.

This Gtk-mainloop is invoked in the background in the beginning of the program, after
the file containing the windows-descriptions (project.glade) is loaded.


Then Basic continues to run then, in a "indefinite loop" (while 1)

In this loop, it listens to the events sent by the Gtk-mainloop.
So if a button is clicked, you now can check for its name, 
and branch to a corresponding function or sub.

You currently must add these subs manually to the existing code, simply use the examples 
as a template.

