[gtkada] (no subject)

Emmanuel Briot briot at ACT-Europe.FR
Fri Nov 16 10:00:24 CET 2001


"linutux loinux" <linutux_1 at hotmail.com> writes:

> I'm making a GUI with GtkAda and I want execute other program (don't write in
> Ada) in a widget, but I don't know how I can do it. Can anybody help me?.


There is no general way to do it.
The simplest is to execute a command, and pipe its output to a file descriptor
inside your program. Then copy all the strings into a Gtk_Text widget.

Have a look at the package GNAT.Expect (I can't remember if it was in the
last public release, or if you have to get it from the GVD sources, see
http://libre.act-europe.fr ) to see how to execute the process.

Emmanuel




More information about the gtkada mailing list