2 # tkextlib/tcllib/datefield.rb
3 # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5 # * Part of tcllib extension
6 # * Tk datefield widget
8 # (The following is the original description of the library.)
10 # The datefield package provides the datefield widget which is an enhanced
11 # text entry widget for the purpose of date entry. Only valid dates of the
12 # form MM/DD/YYYY can be entered.
14 # The datefield widget is, in fact, just an entry widget with specialized
15 # bindings. This means all the command and options for an entry widget apply
20 require 'tkextlib/tcllib.rb'
22 # TkPackage.require('datefield', '0.1')
23 TkPackage.require('datefield')
27 class Datefield < Tk::Entry
28 PACKAGE_NAME = 'datefield'.freeze
33 def self.package_version
35 TkPackage.require('datefield')
45 class Tk::Tcllib::Datefield
46 TkCommandNames = ['::datefield::datefield'.freeze].freeze
49 if keys and keys != None
50 tk_call_without_enc(self.class::TkCommandNames[0], @path,
53 tk_call_without_enc(self.class::TkCommandNames[0], @path)