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.12.7 examples/basic_button.rb
glimmer-dsl-libui-0.12.6 examples/basic_button.rb
glimmer-dsl-libui-0.12.5 examples/basic_button.rb
glimmer-dsl-libui-0.12.4 examples/basic_button.rb
glimmer-dsl-libui-0.12.3 examples/basic_button.rb
glimmer-dsl-libui-0.12.2 examples/basic_button.rb
glimmer-dsl-libui-0.12.1 examples/basic_button.rb
glimmer-dsl-libui-0.12.0 examples/basic_button.rb
glimmer-dsl-libui-0.11.10 examples/basic_button.rb
glimmer-dsl-libui-0.11.9 examples/basic_button.rb
glimmer-dsl-libui-0.11.8 examples/basic_button.rb
glimmer-dsl-libui-0.11.7 examples/basic_button.rb
glimmer-dsl-libui-0.11.6 examples/basic_button.rb
glimmer-dsl-libui-0.11.5 examples/basic_button.rb
glimmer-dsl-libui-0.11.4 examples/basic_button.rb
glimmer-dsl-libui-0.11.3 examples/basic_button.rb
glimmer-dsl-libui-0.11.2 examples/basic_button.rb
glimmer-dsl-libui-0.11.1 examples/basic_button.rb
glimmer-dsl-libui-0.11.0 examples/basic_button.rb
glimmer-dsl-libui-0.10.2 examples/basic_button.rb