Manual Pages for UNIX Darwin command on man datefield
MyWebUniversity

Manual Pages for UNIX Darwin command on man datefield

datefield(n) Tk datefield widget datefield(n)

NAME

datefield - Tk datefield widget

SYNOPSIS

package require TTkk package require ddaatteeffiieelldd ??00..11?? ::::ddaatteeffiieelldd::::ddaatteeffiieelldd widgetpath ?options?

DESCRIPTION

The ddaatteeffiieelldd 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 widget apply equally here. CCOOMMMMAANNDDSS ::::ddaatteeffiieelldd::::ddaatteeffiieelldd widgetpath ?options? Creates and configures a date field widget. OOPPTTIIOONNSS See the eennttrryy manual entry for details on all available options. EEXXAAMMPPLLEE

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) KKEEYYWWOORRDDSS clock, entry, widget COPYRIGHT Copyright (c) Keith Vetter

datefield 0.1 datefield(n)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™