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.
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