Fixes for componentized Pagedform
[tcl-tlc.git] / examples / test_dateentry.tcl
blob66ec43593283d8d4eca2c34a56505b75fd0097f6
1 #!/usr/bin/env tclsh8.4
3 source "boilerplate.tcl"
5 proc cb {foo} {
6 puts "foo: ($foo)"
7 .e configure -state disabled
11 proc bar {newdate} {
12 puts "newdate: ($newdate)"
13 puts "foo: ($::foo)"
16 Signal #auto bar
17 $bar set_state 1
18 option add *stateGate $bar
19 Dateentry .e -textvariable ::foo -year 2006 -month Jul -day 07 -command bar -resultformat "%d %b %Y"
20 #.e attach_signal $bar
21 #set foo "kjasdhf"
23 #after 3000 [list $bar set_state 0]
25 pack .e
27 wm deiconify .
29 start_console