2 # tkextlib/iwidgets/datefield.rb
3 # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
7 require 'tkextlib/iwidgets.rb'
11 class Datefield < Tk::Iwidgets::Labeledwidget
16 class Tk::Iwidgets::Datefield
17 TkCommandNames = ['::iwidgets::datefield'.freeze].freeze
18 WidgetClassName = 'Datefield'.freeze
19 WidgetClassNames[WidgetClassName] = self
24 private :__boolval_optkeys
27 super() << 'textbackground'
29 private :__strval_optkeys
34 private :__font_optkeys
37 tk_call(@path, 'get', '-string')
42 number(tk_call(@path, 'get', '-clicks'))
46 bool(tk_call(@path, 'isvalid'))
51 tk_call(@path, 'show', date)
55 tk_call(@path, 'show', 'now')