I’m happy to announce that wxRuby 1.9.2 is now available from Rubyforge.
As usual we’ve got source and binary gems for Win32, OS X and Linux:
http://rubyforge.org/frs/?group_id=35
or
gem install wxruby
== WHAT’S NEW ==
This release has a mix of new syntax features, new classes, and lots of
minor fixes and additions
- New shorter syntax for event handlers
- New shorter syntax for starting apps
- Added CollapsiblePane and CollapsiblePaneEvent
- Added Sound class for playing simple WAV effects
- Various method-specific fixes in GUI classes
- New and improved samples and documentation, including threads sample
== SYNTAX CHANGES ==
All the syntax additions are backwards compatible. The main change is
that when setting up an event handler that just passes onto a method,
instead of writing:
evt_button(my_button.wx_id) { | e | on_button_click(e) }
You can just write
evt_button my_button, :on_button_click
Phew! There’s more information in the event handling tutorial in the
docs. Also, for simple apps, instead of having to create a custom
Wx::App subclass, you can run an app like this:
Wx::App.run do
f = Frame.new(nil, :title => ‘WxRuby demo’)
f.show
end
This will create an App, show a Window and start the main loop, all in
four lines of code.
== INCOMPATIBLE API CHANGES ==
TreeCtrl#get_first_child now only returns a single value, the tree id of
the relevant first child. Use #get_next_sibling to loop over a group of
child tree nodes, or use the convenience method #get_children.
== KNOWN ISSUES ==
At a late stage a minor regression has shown up. Some methods which may
return a Wx::Window or Wx::Sizer (eg Window#get_sizer) can raise a
RuntimeError instead of returning nil if nothing is set. A fix is
already in SVN, but for the time being, if you get “Cannot wrap nil as
Wx::Window” errors, simply rescue them and return nil.
== CREDITS ==
Probably more than any previous wxRuby release, this one has been driven
by user contributions: patches, suggestions and bug reports. Thanks to
Sean L., Sean Lindsay, Mario S., Christophe Bludau, Chauk-Mean P,
Dirk T., Gregor Schmidt, Bela Babik and others who’ve helped out.
September 2007 was our busiest month yet for wxRuby downloads - just shy
of 2,000. Average monthly downloads are two or three times what they
were just one year ago. So thanks all for your support & patience as the
library has matured; keep it coming!
cheers
alex