Sha256: 39dcd2b10c55fb2e3856dcdea14c339efac866c1994b76ac818def3fac1d7957

Contents?: true

Size: 410 Bytes

Versions: 1

Compression:

Stored size: 410 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.pre12 samples/simple_dialogs_outside.rb