Sha256: 49e2ef33c7c834c60f56efca3d489e793675eb50826c2bf0d8237f4f6539ff2f
Contents?: true
Size: 602 Bytes
Versions: 132
Compression:
Stored size: 602 Bytes
Contents
# frozen_string_literal: true require 'glimmer-dsl-libui' include Glimmer window('Basic Entry', 300, 50) { 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('You entered', text) end } } on_closing do puts 'Bye Bye' end }.show
Version data entries
132 entries across 132 versions & 1 rubygems