Sha256: 9dc419623b3ad961a8e564991b4ddfa54ed4c13e17835a9e6707cc29b2986854

Contents?: true

Size: 360 Bytes

Versions: 2

Compression:

Stored size: 360 Bytes

Contents

# 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

2 entries across 2 versions & 1 rubygems

Version Path
shoes-4.0.0.pre2 samples/simple-dialogs-outside.rb
shoes-4.0.0.pre1 samples/simple-dialogs-outside.rb