Sha256: 93c3fb691b51a2b2a6f9cf547558b1c22bb2b9320a06dfb71f2960d3498a3a59

Contents?: true

Size: 321 Bytes

Versions: 1

Compression:

Stored size: 321 Bytes

Contents

# frozen_string_literal: true
Shoes.app height: 200 do
  stack margin_left: 10 do
    title 'Progress Example'
    @p = para
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-4.0.0.pre12 samples/simple_progress_bar.rb