caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Basile STARYNKEVITCH <basile@starynkevitch.net>
To: Max Powers <max_powers280@hotmail.com>, caml-list@inria.fr
Subject: Re: [Caml-list] Calling Ocaml from Python
Date: Thu, 29 Apr 2004 07:45:30 +0200	[thread overview]
Message-ID: <20040429054530.GA19876@ours.starynkevitch.net> (raw)
In-Reply-To: <BAY9-F26Ise0xjrUyn7000692e1@hotmail.com>

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


  parent reply	other threads:[~2004-04-29  5:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-29  3:09 Max Powers
2004-04-29  3:49 ` skaller
2004-04-29  5:45 ` Basile STARYNKEVITCH [this message]
2004-04-29 14:16 ` John Goerzen
2004-04-29  5:07 Max Powers
2004-04-29  5:33 ` skaller
2004-04-29  5:58 Max Powers
2004-04-29  6:56 ` skaller
2004-04-29 21:24 ` art yerkes
2004-04-29  7:42 Max Powers
2004-04-30  1:13 Max Powers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040429054530.GA19876@ours.starynkevitch.net \
    --to=basile@starynkevitch.net \
    --cc=caml-list@inria.fr \
    --cc=max_powers280@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).