[erlang-questions] ANN: wxi, a library to build composable GUI on top of wxErlang
William v Doorn
Fri Apr 2 17:48:22 CEST 2010
This looks like a very interesting approach after I gave it a quick look,
since I've never used this I might start using this for my first GUI's in
William van Doorn
2010/4/2 Dimitry Golubovsky <>
> I have been working on this library for some time; now that it is
> getting into shape I'd like to announce it to the Erlang community.
> The wxi library  is based on the same ideas as found in the Haskell
> GUI library Fudgets : each element of graphics user interface (a
> widget) also acts as a "stream processor" for streams of events
> (messages) generated from user input and I/O operations. Processed
> messages are passed around from widget to widget. Thus, desired user
> interface layout and dynamics can be achieved via functional
> composition of such GUI elements.
> Each widget is defined as a function of certain structure, widgets can
> be nested, combined in parallel and in sequence (in terms of message
> handling). There is no central event loop: each widget is responsible
> for capturing and handling its own events. There is no central GUI
> state: widgets that encapsulate state are implemented as processes;
> stateless widgets are just functions tail-calling other widget
> functions to pass messages around.
> The wxi library is in early development state: while the core
> functionality (composition of widgets) is more or less working, the
> library of general purpose widgets is not yet completed, but this is
> only a matter of time and users contributions.
> For now, the library contains only one module  containing widgets
> composition functions and few generic widgets (panel, button, text
> display). there is a brief tutorial , and an "obligatory" example
> of calculator  with detailed comments in code.
> To give the library a try, download a repo snapshot , or clone the
> repo: (see http://code.google.com/p/wxi/source/checkout).
> I will be happy to hear from the developers of Erlang-based projects
> that involve wx-based GUI whether using such a library would be more
> convenient and productive in comparison with "traditional" way (e. g.
> the wx-based GUI to dialyzer which is based on a central event loop).
> Thanks in advance for any ideas and suggestions.
> 1. http://code.google.com/p/wxi/
> 2. http://www.md.chalmers.se/Cs/Research/Functional/Fudgets/
> 3. http://wxi.googlecode.com/hg/src/wxi.erl
> 4. http://code.google.com/p/wxi/wiki/AnatomyOfWidget
> 5. http://wxi.googlecode.com/hg/examples/wxicalc.erl
> 6. http://wxi.googlecode.com/files/wxicalc-2010-04-01.tar.gz
> Dimitry Golubovsky
> Anywhere on the Web
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:
More information about the erlang-questions