Ada di http://wiki.buatruby.com/wiki/Shoes

--------------------


  Shoes


       From Wiki Ruby

Jump to: navigation <http://wiki.buatruby.com/wiki/Shoes#column-one>, 
search <http://wiki.buatruby.com/wiki/Shoes#searchInput>

Shoes adalah library Ruby untuk aplikasi GUI.

Homepage: http://code.whytheluckystiff.net/shoes/wiki


    Instalasi

Download di: http://code.whytheluckystiff.net/shoes/wiki/DownloadShoes

Di Debian/Ubuntu, instalasi library yang dibutuhkan:

sudo aptitude install libungif4g libvlc0

Extract file tersebut.

Test:

./shoes samples/timer.rb

Hasil:

(gambar nggak muncul di milis)
<http://wiki.buatruby.com/wiki/Berkas:Shoes01.png>

Source code program tersebut:

Shoes.app :height => 150, :width => 250 do
  background rgb(240, 250, 208)
  stack :margin => 10 do
    button "Start" do
      @time = Time.now
      @label.replace "Stop watch started at [EMAIL PROTECTED]"
    end
    button "Stop" do
      @label.replace "Stopped, ", strong("#{Time.now - @time}"), " seconds 
elapsed."
    end
    @label = para "Press ", strong("start"), " to begin timing."
  end

end


-- 
Hendy Irawan
www.hendyirawan.com

Kirim email ke