Sha256: cf18a33f82aa36353692612cbe090044bda2eb51de5a8ad6dd944509d620ce0f

Contents?: true

Size: 324 Bytes

Versions: 27

Compression:

Stored size: 324 Bytes

Contents

require '../lib/green_shoes'

Shoes.app height: 200 do
  stack margin_left: 10 do
    title 'Progress Example'
    @p = para '0%'
  end

  pg = progress left: 10, top: 100, width: width - 20
  animate do |i|
    j = i % 100 + 1
    pg.fraction = j / 100.0
    @p.text = "%2d%" % (pg.fraction * 100)
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
green_shoes-1.0.337 samples/sample42.rb
green_shoes-1.0.331 samples/sample42.rb
green_shoes-1.0.322 samples/sample42.rb
green_shoes-1.0.320 samples/sample42.rb
green_shoes-1.0.309 samples/sample42.rb
green_shoes-1.0.303 samples/sample42.rb
green_shoes-1.0.282 samples/sample42.rb
green_shoes-1.0.273 samples/sample42.rb
green_shoes-0.263.0 samples/sample42.rb
green_shoes-0.255.0 samples/sample42.rb
green_shoes-0.243.0 samples/sample42.rb
green_shoes-0.233.0 samples/sample42.rb
green_shoes-0.227.0 samples/sample42.rb
green_shoes-0.226.0 samples/sample42.rb
green_shoes-0.221.0 samples/sample42.rb
green_shoes-0.214.0 samples/sample42.rb
green_shoes-0.207.0 samples/sample42.rb
green_shoes-0.201.0 samples/sample42.rb
green_shoes-0.198.0 samples/sample42.rb
green_shoes-0.189.0 samples/sample42.rb