Class: Zerenity::Calendar

Inherits:
Base
  • Object
show all
Defined in:
lib/zerenity/calendar.rb

Overview

:nodoc:

Class Method Summary collapse

Methods inherited from Base

check, run

Class Method Details

.build(dialog, options) ⇒ Object



15
16
17
18
19
# File 'lib/zerenity/calendar.rb', line 15

def self.build(dialog,options)
  super(dialog,options)
  dialog.vbox.add(Gtk::Label.new(options[:text],false))
  dialog.vbox.add(Gtk::Calendar.new) 
end

.retrieve_selection(dialog, options) ⇒ Object



21
22
23
24
# File 'lib/zerenity/calendar.rb', line 21

def self.retrieve_selection(dialog,options)
  super(dialog,options)
  Time.local(*dialog.vbox.children[1].date)
end