Sha256: 2e9aa48d3497238ac39b6611c77dc50399ce8df80cdfde4870cc61b7d0f08787
Contents?: true
Size: 322 Bytes
Versions: 1
Compression:
Stored size: 322 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.rc1 | samples/simple_progress_bar.rb |