Fixes
[tcl-tlc.git] / examples / test_tagentry.tcl
blobb9cc313de70ca3835b9e921cbefa2839928e6f4c
1 #!/usr/bin/itkwish
3 source "boilerplate.tcl"
5 set strict 0
6 set policy ""
8 proc new_policy {text} {
9 puts "text: ($text)"
10 set ::policy $text
12 reassess
15 proc reassess {} {
16 if {$::strict} {
17 set ::policy [string toupper $::policy]
18 } else {
19 set ::policy [string tolower $::policy]
22 .te configure -policy $::policy
25 Tagentry .te -tagtext "%"
27 checkbutton .strict -variable ::strict -command {reassess} -text "strict"
29 Mycombobox .c -choices {
30 alnum alpha ascii boolean control digit double false graph integer lower
31 print punct space true upper wordchar xdigit "" invalidoption
32 } -cb new_policy
34 table . \
35 .te 1,1 -anchor w \
36 .strict 2,1 -anchor w \
37 .c 3,1 -anchor w
39 wm deiconify .