Sha256: af072f0c6f8c5e00ced27980d2d11f060e25daa33805aa2303bc77a7d1d63abc

Contents?: true

Size: 278 Bytes

Versions: 7

Compression:

Stored size: 278 Bytes

Contents

# frozen_string_literal: true

require 'glimmer-dsl-libui'

include Glimmer

window('hello world', 300, 200, 1) { |w|
  button('Button') {
    on_clicked do
      msg_box(w, 'Information', 'You clicked the button')
    end
  }
  
  on_closing do
    puts 'Bye Bye'
  end
}.show

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
glimmer-dsl-libui-0.0.7 examples/basic_button.rb
glimmer-dsl-libui-0.0.6 examples/basic_button.rb
glimmer-dsl-libui-0.0.5 examples/basic_button.rb
glimmer-dsl-libui-0.0.4 examples/basic_button.rb
glimmer-dsl-libui-0.0.3 examples/basic_button.rb
glimmer-dsl-libui-0.0.2 examples/basic_button.rb
glimmer-dsl-libui-0.0.1 examples/basic_button.rb