File: example_scroll.tcl

package info (click to toggle)
r-cran-tcltk2 1.2-10-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,356 kB
  • ctags: 1,386
  • sloc: tcl: 37,888; ansic: 792; python: 324; sh: 68; sed: 16; makefile: 1
file content (11 lines) | stat: -rw-r--r-- 268 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11

source ./ctext.tcl

scrollbar .y -orient vertical -command {.t yview}
ctext .t -xscrollcommand {.x set} -yscrollcommand {.y set} -wrap none
scrollbar .x -orient horizontal -command {.t xview}


grid .y -sticky ns
grid .t -row 0 -column 1
grid .x -column 1 -sticky we