datefield(n) Tk datefield widget datefield(n)
__________________________________________________________________________________________________________________________________________________NAME
datefield - Tk datefield widget
SYNOPSIS
package require Tk
package require datefield ?0.2?
::datefield::datefield widgetpath ?options?
_________________________________________________________________DESCRIPTION
The datefield package provides the datefield widget which is an enhanced text entry widget for the purpose of date entry. Only valid dates
of the form MM/DD/YYYY can be entered.
The datefield widget is, in fact, just an entry widget with specialized bindings. This means all the command and options for an entry wid-
get apply equally here.
COMMANDS
::datefield::datefield widgetpath ?options?
Creates and configures a date field widget.
OPTIONS
See the entry manual entry for details on all available options.
EXAMPLE
package require datefield
wm title . "Datefield example"
proc DayOfWeek {args} {
set now [clock scan $::myDate]
set ::myDate2 [clock format $now -format %A]
}
trace variable myDate w DayOfWeek
::datefield::datefield .df -textvariable myDate
label .l1 -text "Enter a date:" -anchor e
label .l2 -text "That date is a:" -anchor e
label .l3 -textvariable myDate2 -relief sunken -width 12
grid .l1 .df -sticky ew
grid .l2 .l3 -sticky ew
focus .df
SEE ALSO
clock(n), entry(n)
KEYWORDS
clock, entry, widget
COPYRIGHT
Copyright (c) Keith Vetter <keith@ebook.gemstar.com>
datefield 0.2 datefield(n)
Check Out this Related Man Page
datefield(3tk) Tk datefield widget datefield(3tk)__________________________________________________________________________________________________________________________________________________NAME
datefield - Tk datefield widget
SYNOPSIS
package require Tk
package require datefield ?0.2?
::datefield::datefield widgetpath ?options?
_________________________________________________________________DESCRIPTION
The datefield package provides the datefield widget which is an enhanced text entry widget for the purpose of date entry. Only valid dates
of the form MM/DD/YYYY can be entered.
The datefield widget is, in fact, just an entry widget with specialized bindings. This means all the command and options for an entry wid-
get apply equally here.
COMMANDS
::datefield::datefield widgetpath ?options?
Creates and configures a date field widget.
OPTIONS
See the entry manual entry for details on all available options.
EXAMPLE
package require datefield
wm title . "Datefield example"
proc DayOfWeek {args} {
set now [clock scan $::myDate]
set ::myDate2 [clock format $now -format %A]
}
trace variable myDate w DayOfWeek
::datefield::datefield .df -textvariable myDate
label .l1 -text "Enter a date:" -anchor e
label .l2 -text "That date is a:" -anchor e
label .l3 -textvariable myDate2 -relief sunken -width 12
grid .l1 .df -sticky ew
grid .l2 .l3 -sticky ew
focus .df
SEE ALSO clock(3tcl), entry(3tk)KEYWORDS
clock, entry, widget
COPYRIGHT
Copyright (c) Keith Vetter <keith@ebook.gemstar.com>
datefield 0.2 datefield(3tk)
Hello
I am a TCL beginer, so please answer accordingly
here are my question:
1. variable scope
I built a text widget and gave it a textvariable: cmd_entry, I
I sent it to a procedure where I declare it as “global cmd_entry” and give it a value
The problem is that in the main program... (0 Replies)
Hey Guyz I have a requirement something like this..
a part of file name, date of modification of that file and a text is entered as input.
like
Date : 080206 (MMDDYY format.)
filename : hotel_rates
text : Jim
now the file hotel_rates.ZZZ.123 (creation date is Aug 02 2006) should be... (10 Replies)
Dear all,
This should be simple but I cannot figure it out despite reading all the man pages. Could someone please help me translate this code (GNU date) to one that can be read by BSD date?:
myDate=$(date -d "$h -$l days" +%Y/%m/%d),
where h is a variable of the form DD/MM/YYYY, and l is... (3 Replies)
Hi all,
I have a variable where it has a date value in the format YYYY-MM-DD
eg->
pcontromModate="2010-11-31"
How can i get the previous date of pcontromModate in the format YYYY-MM-DD (3 Replies)