From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA15152; Thu, 16 Sep 2004 22:48:42 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA13132 for ; Thu, 16 Sep 2004 22:48:41 +0200 (MET DST) Received: from kraid.nerim.net (smtp-104-thursday.nerim.net [62.4.16.104]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id i8GKmfHi018498 for ; Thu, 16 Sep 2004 22:48:41 +0200 Received: from hector.lesours (ours.starynkevitch.net [62.212.121.80]) by kraid.nerim.net (Postfix) with ESMTP id A9DEC41946 for ; Thu, 16 Sep 2004 22:48:39 +0200 (CEST) Received: from basile by hector.lesours with local (Exim 4.34) id 1C83JD-0001wa-9V for caml-list@inria.fr; Thu, 16 Sep 2004 22:56:51 +0200 Date: Thu, 16 Sep 2004 22:56:51 +0200 To: caml-list@inria.fr Subject: Re: [Caml-list] WxWidgets? Message-ID: <20040916205651.GA7343@ours.starynkevitch.net> References: <4149F2D0.7040408@ntlworld.com> Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4149F2D0.7040408@ntlworld.com> User-Agent: Mutt/1.5.6+20040818i From: Basile STARYNKEVITCH X-Miltered: at nez-perce with ID 4149FC29.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 basile:01 basile:01 2004:99 gui:01 toolkit:01 toolkit:01 gui:01 swig:01 wxpython:01 python:01 hooks:01 python:01 textual:01 guis:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, Sep 16, 2004 at 09:08:48PM +0100, chris.danx wrote: > Was looking on the web for an alternative to using GTK+ on Windows (no > flames please) and found WxWidgets. It looks like a quite nice GUI > toolkit. .... There is also the FOX toolkit www.fox-toolkit.org which claims also to be both on Unix & Windows. It is a nice (cross-platform) GUI toolkit (in C++) also (but there is no Ocaml binding to it). > Has anyone made such a binding? If not I was thinking about using swig > and the wxpython interfaces as the starting point for a wxwidgets > binding for ocaml. Has anyone tried to do this in the past? Any > thoughts on the issue? If there is a Python binding to it already, you might also consider coding a WXwidget "server" by coding (in C) the few hooks to make a program using WxWidgets which listen on a pipe (or whatever the Windows equivalent is) for Python instructions, and sending back (to your application) some textual protocol. I already coded this in GUIS (see http://starynkevitch.net/Basile/guisdoc.html for more) for GTK2 (and you can borrow some code if you like). IMHO, the costly coding is to interface all the WXWidget API. If it has been done once (for Python) you might try reusing it - either with Swig (for Ocaml) or by pluggin a python interpreter. The GUI could even (as GUIS suggest) run in a different process than your Ocaml application. NB: I've got no knowledge on Windows, and no significant experience with Swig or WxWidgets. So take all above with several grains of salt. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet aliases: basiletunesorg = bstarynknerimnet 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