5

How to make/create a GUI (Graphical User Interface) in Ada programming language? It is possible?

In Python, you can use tkinter to make a window form.

3 Answers3

12

I know of 5 GUI frameworks for Ada (see the Awesome Ada List for some of them)

  1. GtkAda
  2. Gnavi
  3. Claw
  4. Gnoga
  5. QtAda

GtkAda you can get for free from AdaCore. Claw can be purchased. I'm not familiar with Gnavi so I cannot comment on it much. I've spent more time working with Gnoga and like both it and GtkAda. GtkAda is a native framework, but I like Gnoga because you can provide the GUI via webbrowser (so more easily cross platform) or you can integrate it with a native platform (including GtkAda, Electron, etc.). I'm not familiar much with QtAda

Also note, that if you can find another C or C++ GUI library, you can write bindings for it in Ada (it has a very good external language interface).

Jere
  • 3,124
  • 7
  • 15
4

You could try Tcl Ada Shell, which supports Tk so should, I expect, be close-ish to tkinter. Personally I find it easiest to develop the user interface in Tcl/Tk and build the model in Ada.

Or there’s GtkAda - can be obtained from AdaCore for Linux, Windows (I assume you’re running the 2018 Community Edition?)

Simon Wright
  • 25,108
  • 2
  • 35
  • 62
0

I would add my support for Gnoga. I like it because

  • It is not a binding; it is a GUI written in Ada.
  • It is completely portable, because it uses a browser to provide the GUI
Jeffrey R. Carter
  • 3,033
  • 9
  • 10