Sha256: aa41bc1d1bbd7e318c60e7e9e161e07681a7ebb9bf1e599daac441a6a1f47f93
Contents?: true
Size: 594 Bytes
Versions: 1
Compression:
Stored size: 594 Bytes
Contents
# frozen_string_literal: true require 'glimmer-dsl-libui' include Glimmer window('Form') { |w| margined true vertical_box { form { @first_name_entry = entry { # stretchy true # Smart default option for appending to form label 'First Name' } @last_name_entry = entry { # stretchy true # Smart default option for appending to form label 'Last Name' } } button('Display Name') { on_clicked do msg_box(w, 'Name', "#{@first_name_entry.text} #{@last_name_entry.text}") end } } }.show
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
glimmer-dsl-libui-0.0.15 | examples/form.rb |