Sha256: 20a2e6bedb6a4a921bb73315031bee8746dd0ad6d4bcfc387181f3eb71004d68
Contents?: true
Size: 545 Bytes
Versions: 16
Compression:
Stored size: 545 Bytes
Contents
require_relative 'helpers/example_window' # Example for Button and ToggleButton class ExampleState < Fidgit::GuiState def initialize super vertical do my_label = label "Label", tip: "I'm a label" combo_box(value: 1, tip: "I'm a combo box; press me and make a selection!") do subscribe :changed do |sender, value| my_label.text = "Chose #{value}!" end item "One", 1 item "Two", 2 item "Three", 3 end end end end ExampleWindow.new.show
Version data entries
16 entries across 16 versions & 1 rubygems