Sha256: abc4b3754c43df976e1e453aa81dab257c176bb0c5f71536b1464b70865b066f
Contents?: true
Size: 1.03 KB
Versions: 3
Compression:
Stored size: 1.03 KB
Contents
# # tkextlib/iwidgets/datefield.rb # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) # require 'tk' require 'tkextlib/iwidgets.rb' module Tk module Iwidgets class Datefield < Tk::Iwidgets::Labeledwidget end end end class Tk::Iwidgets::Datefield TkCommandNames = ['::iwidgets::datefield'.freeze].freeze WidgetClassName = 'Datefield'.freeze WidgetClassNames[WidgetClassName] = self def __boolval_optkeys super() << 'gmt' end private :__boolval_optkeys def __strval_optkeys super() << 'textbackground' end private :__strval_optkeys def __font_optkeys super() << 'textfont' end private :__font_optkeys def get_string tk_call(@path, 'get', '-string') end alias get get_string def get_clicks number(tk_call(@path, 'get', '-clicks')) end def valid? bool(tk_call(@path, 'isvalid')) end alias isvalid? valid? def show(date=None) tk_call(@path, 'show', date) self end def show_now tk_call(@path, 'show', 'now') self end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tk_as_gem-0.1.0 | ext/lib/tkextlib/iwidgets/datefield.rb |
tk_as_gem-0.0.1 | ext/lib/tkextlib/iwidgets/datefield.rb |
tk_as_gem-0.0.0 | ext/lib/tkextlib/iwidgets/datefield.rb |