1
1
[comment {-*- tcl -*- doctools manpage}]
2
- [manpage_begin datefield n 0.2 ]
2
+ [manpage_begin datefield n 0.3 ]
3
3
[see_also clock(n)]
4
4
[see_also entry(n)]
5
5
[keywords clock]
6
6
[keywords date]
7
7
[keywords dateentry]
8
8
[keywords entry]
9
9
[keywords widget]
10
- [copyright {Keith Vetter <
[email protected] >}]
10
+ [copyright {Keith Vetter <
[email protected] >} and
11
+ {Thomas Wunderlich <
[email protected] >}]
11
12
[moddesc {Tk datefield widget}]
12
13
[titledesc {Tk datefield widget}]
13
14
[category Widget]
14
15
[require Tk]
15
- [require datefield [opt 0.2 ]]
16
+ [require datefield [opt 0.3 ]]
16
17
[description]
17
18
18
19
The [package datefield] package provides the datefield widget which
19
- is an enhanced text entry widget for the purpose of date entry. Only
20
- valid dates of the form MM/DD/YYYY can be entered.
20
+ is an enhanced text entry widget for the purpose of date entry. There
21
+ are three valid formats for the dates which can be entered:
22
+ [list_begin [enum]]
23
+ [enum] English form MM/DD/YYYY using [arg {-format " %m/%d/%Y" }] (default)
24
+ [enum] German form DD.MM.YYYY using [arg {-format " %d.%m.%Y" }]
25
+ [enum] ISO form YYYY-MM-DD using [arg {-format " %Y-%m-%d" }]
26
+ [list_end]
21
27
22
28
[para]
23
29
@@ -36,7 +42,18 @@ Creates and configures a date field widget.
36
42
37
43
[section OPTIONS]
38
44
39
- See the [cmd entry] manual entry for details on all available options.
45
+ [list_begin definitions]
46
+ [call [arg -format]]
47
+
48
+ One of " %m/%d/%Y" (English, default if option left), " %d.%m.%Y" (German),
49
+ or " %Y-%m-%d" (ISO).
50
+
51
+ [list_end]
52
+
53
+ [para]
54
+
55
+ See the [cmd entry] manual entry for details on all remaining/available
56
+ options.
40
57
41
58
[section EXAMPLE]
42
59
[example {
@@ -49,7 +66,7 @@ See the [cmd entry] manual entry for details on all available options.
49
66
}
50
67
trace variable myDate w DayOfWeek
51
68
52
- ::datefield::datefield .df -textvariable myDate
69
+ ::datefield::datefield .df -textvariable myDate -format " %m/%d/%Y "
53
70
label .l1 -text " Enter a date:" -anchor e
54
71
label .l2 -text " That date is a:" -anchor e
55
72
label .l3 -textvariable myDate2 -relief sunken -width 12
0 commit comments