Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dateentry

Status
Not open for further replies.

bubbles27

Programmer
Sep 30, 2002
2
SG
Hi,

I'm new to Tcl. Can anyone tell me how to use the dateentry widget? I'm trying to display the date onto a label.

Thanks.
 
If you are really using the dateentry widget of IWidgets, you can find some documentation at:
If you are using a label widget and want to know how to format a date, see the 'clock format' command.

Here is a little exemple to put the date of the day inside a label:

pack [label .l -text [clock format [clock seconds]]]

'clock seconds' returns the date of the day (in seconds).
'clock format' formats this date with a standard format.
'label' creates a label.
'pack' places and shows the label.

Good luck

ulis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top