Using the terminal
Here is a simple screenshot of a terminal interacting with the REPL (Read-Print-Eval Loop):
- If you have the GNU library readline installed, you will be able to edit commands lines as they are typed in.
Introduction to GUI Programming
STklos permits to easily program GUI (Graphical User Interfaces). To program a GUI, you need to install some packages which are available through the ScmPkg mechanism.
The packages can easily be downloaded through the command line with the
stklos-pkg command. See the ScmPkg for more information.
Programming a GUI in STklos can be done at three different methods:
The first method uses a simple wrapping of the GTK+ library. This wrapping is provided by the
stklos-gtk-basepackage. Programming at this level is very similar to programming a GUI in C. In particular, standard GTK+ documentation can easily be followed to build a GUI. An example of GUI using this package is given below.
The second method uses the Glade interface builder. Glade home page describes it as “a RAD tool to enable quick & easy development of user interfaces for the GTK+ toolkit and the GNOME desktop environment, released under the GNU GPL License. The user interfaces designed in Glade are saved as XML, and by using the libglade library these can be loaded by applications dynamically as needed.”
To build an interface with the Glade interface builder, you need to install the
stklos-gtk-gladepackage. An example of GUI using this package is given below.
Programming interfaces with the OO model permits to define your own widgets thanks to the MOP of STklos. With the
stklos-gtklospackage you can define the following GUI: