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.11.7 examples/date_time_picker.rb
glimmer-dsl-libui-0.11.6 examples/date_time_picker.rb
glimmer-dsl-libui-0.11.5 examples/date_time_picker.rb
glimmer-dsl-libui-0.11.4 examples/date_time_picker.rb
glimmer-dsl-libui-0.11.3 examples/date_time_picker.rb
glimmer-dsl-libui-0.11.2 examples/date_time_picker.rb
glimmer-dsl-libui-0.11.1 examples/date_time_picker.rb
glimmer-dsl-libui-0.11.0 examples/date_time_picker.rb
glimmer-dsl-libui-0.10.2 examples/date_time_picker.rb
glimmer-dsl-libui-0.10.1 examples/date_time_picker.rb
glimmer-dsl-libui-0.10.0 examples/date_time_picker.rb
glimmer-dsl-libui-0.9.7 examples/date_time_picker.rb
glimmer-dsl-libui-0.9.6 examples/date_time_picker.rb
glimmer-dsl-libui-0.9.5 examples/date_time_picker.rb
glimmer-dsl-libui-0.9.4 examples/date_time_picker.rb
glimmer-dsl-libui-0.9.3 examples/date_time_picker.rb
glimmer-dsl-libui-0.9.2 examples/date_time_picker.rb
glimmer-dsl-libui-0.9.1 examples/date_time_picker.rb
glimmer-dsl-libui-0.9.0 examples/date_time_picker.rb
glimmer-dsl-libui-0.8.0 examples/date_time_picker.rb