Sha256: d6f25bf7e69b704b536127e4843487f2d226c177f5c9f09c2f0c2e227da16261

Contents?: true

Size: 323 Bytes

Versions: 1

Compression:

Stored size: 323 Bytes

Contents

# frozen_string_literal: true

Shoes.app do
  stack do
    @line = edit_line "Put text here"
    flow do
      button "Copy" do
        self.clipboard = @line.text
        @buffer.text = "Now click Paste"
      end
      button "Paste" do
        @buffer.text = clipboard
      end
    end

    @buffer = para ""
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-4.0.0.rc1 samples/simple_clipboard.rb