Sha256: ad46a0bc9ecdd018d349dc9d19b9d0a16b57cf6a470132ae73f464632862e52d

Contents?: true

Size: 264 Bytes

Versions: 2

Compression:

Stored size: 264 Bytes

Contents

Shoes.app do
  lb = list_box items: Shoes::COLORS.keys.map(&:to_s), choose: 'red' do |s|
    @o.style fill: eval(s.text)
    @p.text = s.text
  end.move(300, 0)
  @p = para
  nostroke
  @o = oval 100, 100, 100, 100
  button('print'){para lb.text}.move(500, 0)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shoes-4.0.0.pre2 samples/simple-color-selector.rb
shoes-4.0.0.pre1 samples/simple-color-selector.rb