Sha256: 3d28fdf40e0fb0a5c372a7e9148700ae0d9b82094aee45937b98cbd9be507d25
Contents?: true
Size: 389 Bytes
Versions: 1
Compression:
Stored size: 389 Bytes
Contents
# frozen_string_literal: true Shoes.app title: 'Samples Executor', width: 540, height: 640 do BUTTON_HEIGHT = 20 samples = File.join(File.dirname(__FILE__), "*.rb") stack do Dir.glob(samples).sort.each_with_index do |file, index| button = button(File.basename(file)) { load file } button.style top: (BUTTON_HEIGHT * index), height: BUTTON_HEIGHT end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-4.0.0.pre12 | samples/simple_sample_executor_all.rb |