PDA

View Full Version : fortran gui




anoopmj
Sep 28, 2010, 09:22 PM
Hi,

I have been programming with visual basic on windows for a while now and was hoping to move onto fortran (mainly because of lots of old code) on a mac. I have gfortran and g95 already, and it seems to work well.

I was wondering if anyone knew a good and simple (imp!) way to create GUIs for fortran code on a mac, like visual basic on windows? I have heard about Xcode, but that does not seem as intuitive as VB.

Cheers,

A



vmagnin
Feb 21, 2011, 03:59 AM
Hi, it has not yet been tested on Mac, but it should work. Let me know.

The objective of the gtk-fortran project is to offer Fortran programmers a crossplatform library to build Graphical User Interfaces (GUI). Gtk-fortran is a GTK+ / Fortran binding entirely written in Fortran. It is based on the ISO_C_BINDING module for interoperability between C and Fortran, which is a part of the Fortran 2003 standard. GTK+ is a free software crossplatform graphical library available for Linux, Unix, Windows and MacOs X.

The home page of the project is https://github.com/jerryd/gtk-fortran/wiki

In its devel branch, gtk-fortran offers currently an interface to more than 8100 GTK+ functions (GTK, GDK, GdkPixbuf, Cairo, Pango). It is not complete but covers probably more than 85% of GTK, GDK, GdkPixbuf, Cairo and Pango. These interfaces were automatically created by a python script which parses the C header files of the GTK+ libraries.