Sha256: b1ec94eedfa178ef408bce69e65455f275a17d331bb22c3348dccffec6d394c9

Contents?: true

Size: 470 Bytes

Versions: 1

Compression:

Stored size: 470 Bytes

Contents

# frozen_string_literal: true
Shoes.app do
  stack do
    background blue
    3.times do
      para "Three lines first!"
    end
  end

  stack attach: Shoes::Window, height: 30, width: 300 do
    background green
    para "Attached to the window!"
  end

  @next = stack margin: 20 do
    background yellow
    3.times do
      para "Three lines next!"
    end
  end

  stack attach: @next, height: 30, width: 300 do
    background red
    para "Sneaked up!"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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