The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Kapsules 0.9.8

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Red Handed

Posts: 1158
Nickname: redhanded
Registered: Dec, 2004

Red Handed is a Ruby-focused group blog.
Kapsules 0.9.8 Posted: Jan 27, 2005 4:44 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Red Handed.
Original Post: Kapsules 0.9.8
Feed Title: RedHanded
Feed URL: http://redhanded.hobix.com/index.xml
Feed Description: sneaking Ruby through the system
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Red Handed
Latest Posts From RedHanded

Advertisement

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

Read: Kapsules 0.9.8

Topic: Classes Evaporating Into Breathable Modules Previous Topic   Next Topic Topic: Solaris has ACL?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use