Added onselect handler
[tcl-tlc.git] / tests / toolbar.itk
blobfcb4f96b1f943c2d5b8649a418a984fff5ce60e9
1 #!/usr/bin/tclsh
3 source "boilerplate.tcl"
5 Tools .toolbar -tooltipdelay 700
7 .toolbar add "Foo" [code foo]
8 .toolbar separator
9 .toolbar add "Bar" [code bar]
10 .toolbar add "Baz" [code baz]
11 .toolbar add "Close" [code exit] right
13 .toolbar set_tips \
14                 "Bar"   "This is a bar" \
15                 "Baz"   "Some baz?"
17 pack .toolbar