Are other languages than Java more suitable for this task? What do you
use?
Cheers
-Ralf
Arjan
Faced with this question I decided to try the Python option, using the access to
Qt provided by PyQt. This comes with an easy-to-use program for creating a UI
with the usual widgets, called QtDesigner. My program is built as a dynamic
link library (DLL, or .so) which is loaded by Python, making the Fortran
subroutines available (those that are exposed). In my case it was very simple,
because I just need to call the subroutine that executes the program.
I chose to communicate on-the-fly model output to the GUI via sockets, which are
read at the Python end in separate threads. Currently I'm doing only simple 2D
graphics (using PyQwt), but at some point I'll probably venture into 3D graphics
using one of the Python libraries that provides OpenGL functions.
dislin (dislin.de) has a nice set of gui widgets that do the job without
having to interface with a different language. Works under linux,
windows, and osx.
I use excel for my GUI's. Backend is fortran's dll and the GUI is VBA
based form. Though it only works for Windows!!
The Wiki Arjan is referring to is: http://wiki.tcl.tk
There are a number of ways you can use Tcl/Tk to create GUIs for
Fortran programs:
- The GUI prepares all the input for the Fortran program
- The GUI takes over the dialogue that the Fortran program normally
presents
- The GUI uses the Fortran routines directly to do the computations
- Create the GUI from within the Fortran program using the facilities
offered by Tcl/Tk.
For the first nothing special is required. For the second, the Tclers'
Wiki
provides a few examples (though they may require some help from the
Fortran
program - due to buffering the output!).
For the third (and - incomplete! - the fourth), have a look at my Ftcl
project -
http://ftcl.sf.net.
Regards,
Arjen
I have placed a ZIP file containing a demonstration (MENU.EXE) of a
textual user interface at the link:
http://www.corrugraphics.com/TUI/Fortran TUI.zip
You may download the file and view my demo. I would be interested in
comments regarding its utility. The code was written and compiled
with Microsoft Powerstation and uses some internal subprograms unique
to that particular compiler. Some difficulties I have had with
converting the code to CVF 6.5 can be read about on the thread How to
print Extended ASCII Characters:
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/7bce0094d9f082bd#
I have placed a ZIP file containing a demonstration (MENU.EXE) of a
textual user interface at the link:
http://www.corrugraphics.com/TUI/Fortran_TUI.zip
Obsolete compiler and OS limits utility. For TUI work it may be more
portable to use pdcurses. It is, of course, written in C.
I stumbled onto a pdcurses module for fortran at
http://www.qimr.edu.au/davidD/Curses/testcurs.f95
Regards
Albert
Regards
Mark
Bradly Associates are pleased to announce the availability of GINO
v7.5.
A brief list of New features include:
* 32bit and 64bit versions supplied as one package
* Full Vista/Windows 7 support with better UAC control
* New driver for creating Flash/SWF files
* New XP/Vista icons in GINOMENU/GINOMENU Studio
* Full documentation now available on web-site
* New cursor types in GINOMENU
* Block commenting/uncommenting in GINOMENU Studio
* Block indenting/outdenting in GINOMENU Studio
* New look and feel to GINOMENU Studio
* Improved interface to C run-time libraries
* Ready for Visual Studio 2010
* Code-Signed Installation
BUY YOUR UPGRADE ON-LINE BEFORE 22ND MARCH 2010 AND RECEIVE A 25%
DISCOUNT.
Full details can be found at:
Try
Japi - an open source free software GUI toolkit allowing the
development of platform independent applications
AA
Python was pretty painless on Windows, and is probably just as easy on Linux
(I'll find out soon).
Gib