Kapsules 0.9.8 #
A couple of weeks ago, Curt Hibbs brought up Kapsules, desktop widgets for Windows, which can be scripted with Ruby. At the time, the site was down for an upgrade. And, now it’s back.
Looks like there are about five widgets written in Ruby, including KapMeteorology (pictured to the right.) You’ll need ActiveRuby to make use of them.
The scripting resembles a lot of other GUI libraries like FOX. A bit simpler I guess.
# Draw forecast. Graphics.Font.Size = 8 forecast_drawables.each do |part, drawable| if weather_image = drawable[ "icon" ] Graphics.DrawImage( weather_image, drawable[ "start" ], 40, weather_image.Width / 2, weather_image.Height / 2 ) weather_image.Dispose end Graphics.DrawString( drawable[ "text" ], drawable[ "start" ], text_start_y, Settings.GetSettingAttribute( "widgetroot/forecast", "width" ).to_i, Widget.Height - text_start_y ) end
Aquila
Do you know of a similar program with Ruby scripting for linux?
why
Possibly the closest alternative for Linux is Ruby-KDE, since Kapsules is an offspring of KDE look + feel. Kahakai, the window manager. Or Ruby-Gnome.
Ed
If you install ActiveRuby, be sure not to install in your existing Ruby directory. It will cause problems.
Comments are closed for this entry.