- pack $w.out.file.l -side top -fill x
- pack $w.out.file.t -fill both
- $w.out add $w.out.file
- lappend texts $w.out.file.t
+ lappend texts $w.out.file_t
+
+ scrollbar $w.out.sbx -orient h -command [list $w.out.file_t xview]
+ scrollbar $w.out.sby -orient v \
+ -command [list scrollbar2many $texts yview]
+ set labels [list]
+ foreach i $texts {
+ regsub {_t$} $i _l l
+ lappend labels $l
+ }
+ set file_col [expr {[llength $texts] - 1}]
+ eval grid $labels -sticky we
+ eval grid $texts $w.out.sby -sticky nsew
+ grid conf $w.out.sbx -column $file_col -sticky we
+ grid columnconfigure $w.out $file_col -weight 1
+ grid rowconfigure $w.out 1 -weight 1
+ pack $w.out -fill both -expand 1