Sha256: 66b34f57f68560ad70cd5575e1b9a942c4d1a29bead6ea35a3114b7542843188

Contents?: true

Size: 439 Bytes

Versions: 77

Compression:

Stored size: 439 Bytes

Contents

# frozen_string_literal: true

require 'glimmer-dsl-libui'

class DateTimePicker
  include Glimmer
  
  attr_accessor :picked_time
  
  def launch
    window('Date Time Pickers', 300, 200) {
      vertical_box {
        date_time_picker {
          time <=> [self, :picked_time, after_write: ->(time) { p time }]
        }
      }
      
      on_closing do
        puts 'Bye Bye'
      end
    }.show
  end
end

DateTimePicker.new.launch

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
glimmer-dsl-libui-0.5.0 examples/date_time_picker.rb
glimmer-dsl-libui-0.4.22 examples/date_time_picker.rb
glimmer-dsl-libui-0.4.21 examples/date_time_picker.rb
glimmer-dsl-libui-0.4.20 examples/date_time_picker.rb
glimmer-dsl-libui-0.4.19 examples/date_time_picker.rb
glimmer-dsl-libui-0.4.18 examples/date_time_picker.rb
glimmer-dsl-libui-0.4.17 examples/date_time_picker.rb
glimmer-dsl-libui-0.4.16 examples/date_time_picker.rb
glimmer-dsl-libui-0.4.15 examples/date_time_picker.rb
glimmer-dsl-libui-0.4.14 examples/date_time_picker.rb
glimmer-dsl-libui-0.4.13 examples/date_time_picker.rb
glimmer-dsl-libui-0.4.12 examples/date_time_picker.rb
glimmer-dsl-libui-0.4.11 examples/date_time_picker.rb
glimmer-dsl-libui-0.4.10 examples/date_time_picker.rb
glimmer-dsl-libui-0.4.9 examples/date_time_picker.rb
glimmer-dsl-libui-0.4.8 examples/date_time_picker.rb
glimmer-dsl-libui-0.4.7 examples/date_time_picker.rb