Fixes for componentized Pagedform
[tcl-tlc.git] / examples / linktest.tcl
blob59a40bd7e881e708caef904a5e81f2c7b1b1ea2f
1 #!/usr/bin/itkwish3.1
3 source "boilerplate.tcl"
5 proc link_handler {rest args} {
6 array set a $args
7 puts "args:"
8 parray a
9 switch -- $rest {
10 "hello" {
11 puts "Hello world"
13 "exit" {
14 exit
19 tlc::uri register_handler test link_handler
21 Label_link .l1 -text "Hello" -target "test://hello?foo=bar&baz=quux"
22 Label_link .l2 -text "Quit" -target "test://exit"
24 table . -padx 5 -pady 5 \
25 .l1 1,1 \
26 .l2 2,1