Sha256: b9a59645094faa1c672817a846b0c52e6e5c628639bb7d632644c7248ef55d7e

Contents?: true

Size: 268 Bytes

Versions: 132

Compression:

Stored size: 268 Bytes

Contents

# frozen_string_literal: true

require 'glimmer-dsl-libui'

include Glimmer

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

Version data entries

132 entries across 132 versions & 1 rubygems

Version Path
glimmer-dsl-libui-0.10.1 examples/basic_button.rb
glimmer-dsl-libui-0.10.0 examples/basic_button.rb
glimmer-dsl-libui-0.9.7 examples/basic_button.rb
glimmer-dsl-libui-0.9.6 examples/basic_button.rb
glimmer-dsl-libui-0.9.5 examples/basic_button.rb
glimmer-dsl-libui-0.9.4 examples/basic_button.rb
glimmer-dsl-libui-0.9.3 examples/basic_button.rb
glimmer-dsl-libui-0.9.2 examples/basic_button.rb
glimmer-dsl-libui-0.9.1 examples/basic_button.rb
glimmer-dsl-libui-0.9.0 examples/basic_button.rb
glimmer-dsl-libui-0.8.0 examples/basic_button.rb
glimmer-dsl-libui-0.7.8 examples/basic_button.rb
glimmer-dsl-libui-0.7.7 examples/basic_button.rb
glimmer-dsl-libui-0.7.6 examples/basic_button.rb
glimmer-dsl-libui-0.7.5 examples/basic_button.rb
glimmer-dsl-libui-0.7.4 examples/basic_button.rb
glimmer-dsl-libui-0.7.3 examples/basic_button.rb
glimmer-dsl-libui-0.7.2 examples/basic_button.rb
glimmer-dsl-libui-0.7.1 examples/basic_button.rb
glimmer-dsl-libui-0.7.0 examples/basic_button.rb