File: tableview1.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 (39 lines) | stat: -rw-r--r-- 843 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
30
31
32
33
34
35
36
37
38
39

package require BLT

set table [blt::datatable create]
$table restore -file ./data/graph4a.tab

#option add *Row.titleJustify center
set view .ss.t

blt::scrollset .ss \
    -window $view \
    -xscrollbar .ss.x \
    -yscrollbar .ss.y 
blt::tk::scrollbar .ss.x 
blt::tk::scrollbar .ss.y

blt::tableview $view \
    -titles both \
    -selectmode cells \
    -increasingicon "" \
    -decreasingicon "" \
    -exportselection 1 \
    -columnfilters yes 

blt::table . \
    0,0 .ss -fill both

$view style create textbox textbox \
    -editor $view.editor -edit yes
blt::comboeditor $view.editor  \
    -height { 0 2i }  \
    -yscrollbar $view.editor.ybar \
    -xscrollbar $view.editor.xbar
blt::tk::scrollbar $view.editor.xbar 
blt::tk::scrollbar $view.editor.ybar

$view column configure x -style textbox 
$view configure -table $table