1widget_calendar(n)        widget::calendar Megawidget       widget_calendar(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       widget_calendar - widget::calendar Megawidget
9

SYNOPSIS

11       package require Tcl  8.4
12
13       package require Tk  8.4
14
15       package require widget  ?3.0?
16
17       widget::calendar pathname ?options?
18
19_________________________________________________________________
20

DESCRIPTION

22       This package provides a calendar megawidget (snidget).  It makes use of
23       the Tile/Ttk themed widget set.
24
25       widget::calendar pathname ?options?
26

WIDGET OPTIONS

28       -command
29              A script to evaluate when a date was selected.
30
31       -dateformat
32              The format of the date that is returned. Default: %m/%d/%Y.
33
34       -firstday
35              Set first day the week, Either sunday or monday. It defaults  to
36              monday.
37
38       -font  Select the font used in the widget. It defaults to Helvetica 9.
39
40       -highlightcolor
41              Selects the background color for the day that has been selected.
42              Default: #FFCC00
43
44       -language
45              Specify language of the calendar contents. The language is spec‐
46              ified  by  abbreviations  of the languge, for example: en - eng‐
47              lish, de - german ...  It defaults to en.
48
49              Supported languages: en, de, fr, it, es, pt, ru, sv, zh, fi
50
51       -shadecolor
52              Selects the color of the parts that have  a  shaded  background.
53              Default: #888888
54
55       -showpast
56              Specify  if  the  past shall be shown. It is a boolean value and
57              defaults to 1.
58
59       -textvariable
60              Specifies the name of a variable whose value is  linked  to  the
61              entry  widget's  contents.  Whenever the variable changes value,
62              the widget's contents are updated, and vice versa.
63

WIDGET COMMAND

65       pathname get what
66
67       Returns part of the selected date or 'all'. The argument  what  selects
68       the part. Valid values for what are: day, month, year and all, ´all' is
69       the default.
70

EXAMPLE

72       package require widget::calendar ; # or widget::all
73       set t [widget::calendar .t]
74       pack $t -fill x -expand 1
75
76

KEYWORDS

78       megawidget, snit, widget
79
80
81
82widget                                0.9                   widget_calendar(n)
Impressum