English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Calling Ocaml from Python
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-04-29 (05:45)
From: Basile STARYNKEVITCH <basile@s...>
Subject: Re: [Caml-list] Calling Ocaml from Python
On Thu, Apr 29, 2004 at 12:39:24PM +0930, Max Powers wrote:
> This is a bit of a repeat of a question that I posted to comp.lang.python 
> (sorry to anyone who was there too!). I'm looking for some advice on 
> integrating a python GUI with an OCaml library. (Note: I'm fairly new to 
> both ocaml and python; more of a perl and c++ programmer!)

You might consider having the GUI in Python and the main OCaml program
be two different processes communicating thru pipes. You might even
consider using my GUIS program, which is a GUI GTK "server" listening
on an input pipe (which could be written by your Ocaml program)  for
Python commands and writing on an output pipe arbitrary textual stuff
(which have to be parsed by your Ocaml).

GUIS is available from http://starynkevitch.net/Basile/guisdoc.html 

(I intend to make a new release of GUIS in a few weeks - if you are
interested and/or want more features, it is the time to tell me).

Basile STARYNKEVITCH         http://starynkevitch.net/Basile/ 
email: basile<at>starynkevitch<dot>net 
aliases: basile<at>tunes<dot>org = bstarynk<at>nerim<dot>net
8, rue de la Faïencerie, 92340 Bourg La Reine, France

To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners