Sha256: 9a61772c10ac0f77bd63e8bed614f11d628f5112d39fbbed71ff3658602696da

Contents?: true

Size: 411 Bytes

Versions: 1

Compression:

Stored size: 411 Bytes

Contents

# frozen_string_literal: true

# testing dialog options inside and outside of Shoes.app.
# Quite annoying, I know.

alert 'This alert should pop up before you even see a window!'
if confirm 'Do you really want to see that window?'
  Shoes.app do
    button 'alert' do
      alert 'You pressed a button.'
    end
    button 'confirm' do
      confirm 'You sure?'
    end
  end
else
  alert 'Ok :-( goodbye.'
end

Version data entries

1 entries across 1 versions & 1 rubygems

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