hoodwink.d enhanced
RSS
2.0
XHTML
1.0

RedHanded

Kapsules 0.9.8 #

by why in cult

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.

Meteorology widget in Ruby.

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
said on 27 Jan 2005 at 02:22

Do you know of a similar program with Ruby scripting for linux?

said on 27 Jan 2005 at 09:36

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.

said on 28 Jan 2005 at 09:06

If you install ActiveRuby, be sure not to install in your existing Ruby directory. It will cause problems.

Comments are closed for this entry.