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
|