GUI in Ada programming language [closed]
Asked Answered
C

3

6

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.

Chadd answered 13/1, 2019 at 17:27 Comment(1)
See also the approach illustrated here.Schober
M
13

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).

Mycah answered 13/1, 2019 at 19:41 Comment(1)
In addition I would like to mention Ada bindings to Qt: r3fowwcolhrzycn2yzlzzw-on.drv.tw/AdaStudioRepand
C
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?)

Contralto answered 13/1, 2019 at 18:17 Comment(0)
H
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
Holmquist answered 16/1, 2019 at 17:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.