summaryrefslogtreecommitdiff
path: root/iwidgets/demos/timefield
diff options
context:
space:
mode:
Diffstat (limited to 'iwidgets/demos/timefield')
-rw-r--r--iwidgets/demos/timefield12
1 files changed, 12 insertions, 0 deletions
diff --git a/iwidgets/demos/timefield b/iwidgets/demos/timefield
new file mode 100644
index 00000000000..1f9377d314c
--- /dev/null
+++ b/iwidgets/demos/timefield
@@ -0,0 +1,12 @@
+# ----------------------------------------------------------------------
+# DEMO: timefield in [incr Widgets]
+# ----------------------------------------------------------------------
+package require Iwidgets 4.0
+
+proc returnCmd {} {
+ puts [.df get]
+}
+
+iwidgets::timefield .df -labeltext "Time:" -command returnCmd
+pack .df -fill x -expand yes -padx 10 -pady 10
+