1 #!/usr/bin/env tclsh8.4
3 # vim: ft=tcl foldmethod=marker foldmarker=<<<,>>> ts=4 shiftwidth=4
5 package require TLC
0.90.0
7 source "boilerplate.tcl"
9 Wizard .wizard
-startpage start
-routing {
12 {$dat(usefoo
)} get_foo
24 {$dat(usefoo
)} get_foo
39 _layout
{row_args_sticky
-resize none
}
40 _layout
{col_args_sticky
-resize none
}
41 "Foo?" {usefoo radiogroup
-choices {
47 _validation_not_blank
{
48 "%1 must be filled in"
57 _layout
{row_args_sticky
-resize none
}
58 _layout
{col_args_sticky
-resize none
}
61 _validation_not_blank
{
62 "%1 must be filled in"
71 _layout
{row_args_sticky
-resize none
}
72 _layout
{col_args_sticky
-resize none
}
76 _validation_not_blank
{
77 "%1 must be filled in"
82 {!$dat(usefoo
) ||
[string first
$dat(foo
) $dat(bar
)] > -1}
83 "If use choose to use foo, bar must contain it"
92 _layout
{row_args_sticky
-resize none
}
93 _layout
{col_args_sticky
-resize none
}
100 # <tr><td>Foo</td><td>%foo%</td></tr>
101 # <tr><td>Bar</td><td>%bar%</td></tr>
109 .wizard
1,1 -fill both
111 wm geometry .
"450x250"
113 .wizard waitfor finished
115 array set dat
[.wizard get_data
]
116 delete object .wizard