Sha256: 0c68c51cdb80ccc09ab82803055d8b496d45d02e2b8939280dcb9bf897430d99
Contents?: true
Size: 609 Bytes
Versions: 19
Compression:
Stored size: 609 Bytes
Contents
# frozen_string_literal: true require 'glimmer-dsl-libui' include Glimmer window('Basic Entry', 300, 50) { |w| horizontal_box { e = entry { # stretchy true # Smart default option for appending to horizontal_box on_changed do puts e.text $stdout.flush # For Windows end } button('Button') { stretchy false # stretchy property is available when control is nested under horizontal_box on_clicked do text = e.text msg_box(w, 'You entered', text) end } } on_closing do puts 'Bye Bye' end }.show
Version data entries
19 entries across 19 versions & 1 rubygems