[ANN] FoxTails 0.1 for FXRuby

http://www.ruby-lang.org/raa/list.rhtml?name=foxtails

FoxTails is a set of extensions for FXRuby. (FXRuby is the Ruby bindings
for the Fox C++ GUI library. See http://fxruby.sourceforge.net.)

This is an alpha release, so documentation is still very sketchy, and
there are no tests. There are examples, though. See also the comments in
foxtails.rb for a basic roadmap of the library.

FoxTails depends on observable:

http://www.ruby-lang.org/raa/list.rhtml?name=observable

and of course fox/fxruby:

http://fxruby.sourceforge.net
http://www.fox-toolkit.org

The most useful part of FoxTails is the use of observable attributes to
connect GUI components. It’s very easy to use. See the examples.

Some features:

  • Deferred targets. By using a code block (in place of the object
    itself) to indicate the target of a widget, there is no need to worry
    about initialization order, which leads to better decoupling.

  • In the FoxTails API, the argument lists have the same form as Fox
    argument lists, except that the tgt,sel args are replaced by a target,
    an accessor, and sometimes other args. So it’s easy to use existing
    documentation and to convert old programs.

  • Works with existing accessors provided by FXRuby (e.g., #enabled=,
    etc.) (see examples/scroll.rb).

  • Updates happen with no delay! (This is esp. nice for menus, which
    always bothered me in Fox.)

  • Values (e.g. in text fields, combo boxes) can be anything, not just
    number or string (see examples/combo.rb).

=== Other features

FoxTails also includes some “megawidgets”, such as a dir broswer with
bookmarks. See examples/file-browser.rb and examples/simple.rb, which
also shows how easy it is to link multiple widgets to a ruby object
attribute. See foxtails.rb for brief descriptions.

Joel VanderWerf wrote:

http://www.ruby-lang.org/raa/list.rhtml?name=foxtails

FoxTails is a set of extensions for FXRuby. (FXRuby is the Ruby bindings
for the Fox C++ GUI library. See http://fxruby.sourceforge.net.)

This is an alpha release, so documentation is still very sketchy, and
there are no tests. There are examples, though. See also the comments in
foxtails.rb for a basic roadmap of the library.

FoxTails also includes some “megawidgets”, such as a dir broswer with
bookmarks. See examples/file-browser.rb and examples/simple.rb, which
also shows how easy it is to link multiple widgets to a ruby object
attribute. See foxtails.rb for brief descriptions.

Interesting package, could be quite useful.

Just wanted to mention that examples/simple.rb doesn’t work with Ruby
WinInstaller 1.7.3-7 (only tested with that so far). I get an error
dialog stating “wrong argument type: expected true or false”.
Unfortuantly there is no other information to indicate where the problem
occured.

Rob

Robert McGovern wrote:

Just wanted to mention that examples/simple.rb doesn’t work with Ruby
WinInstaller 1.7.3-7 (only tested with that so far). I get an error
dialog stating “wrong argument type: expected true or false”.
Unfortuantly there is no other information to indicate where the problem
occured.

That’s the version I’m using, but I don’t see the error.

Maybe it’s the FXRuby version. Try FXRuby-1.0.17 (which I think is newer
than the one included in the ruby-1.7.3-7 WinInstaller).