File: tabset5.tcl

package info (click to toggle)
blt 3.0~1%2B08570046%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 45,556 kB
  • sloc: ansic: 278,852; tcl: 96,434; sh: 3,410; makefile: 2,026; cpp: 374
file content (29 lines) | stat: -rw-r--r-- 705 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

package require BLT

blt::tabset .ts \
   -showtabs never
    
blt::graph .ts.g1 -bg blue
blt::graph .ts.g2 -bg green
blt::barchart .ts.g3 -bg red

.ts add a -window .ts.g1 -fill both
.ts add b -window .ts.g2 -fill both
.ts add c -window .ts.g3 -fill both

blt::tk::radiobutton .ra -text "A" -value a -variable pane \
    -command ".ts select a"
blt::tk::radiobutton .rb -text "B" -value b -variable pane \
    -command ".ts select b"
blt::tk::radiobutton .rc -text "C" -value c -variable pane \
    -command ".ts select c"

blt::table . \
    0,0 .ts  -fill both -rspan 4 \
    0,1 .ra \
    1,1 .rb \
    2,1 .rc
.ra select
blt::table configure . r* -resize none
blt::table configure . r3 -resize both