Does anyone apart from jh is affected to the tktable support ?
For information, Tktable adds an extra vertical space even if all
configuration options are set to 0. Here is a small script describing
the bug :
package require Tktable
for {set r 0} {$r < 10} {incr r} {
for {set c 0} {$c < 10} {incr c} {
set Data($r,$c) $c
}
}
font create MyFont -family CourierNew -size 10 -weight normal
set Dt [string repeat "0123456789\n" 10]
text .t -font MyFont -bg cyan \
-width 10 -height 10
table .k -font MyFont -width 10 -height 10 \
-rows 10 -cols 10 -colwidth 1 \
-bg yellow \
-justify left -anchor w \
-state disabled \
-usecommand 1 \
-highlightthickness 0 -bd 0 \
-pady 0 -ipadx 0 -ipady 0 \
-relief flat \
-variable Data
.t insert end $Dt
grid .k -row 0 -column 0 -sticky news
grid .t -row 0 -column 1 -sticky news
Luc Moulinier
Noone is affected because it's hardly a bug. You don't explain what
the issue is. With this snippet you can make it a bit clear, but that
doesn't mean tktable is doing anything wrong. If you want to match
the spacing, use other options. In the case below you can just adjust
the text widget to match tktable line by line exactly with this:
.t configure -borderwidth 0 -padx 0 -pady 0 -spacing1 1 -spacing3 1
So perhaps that's all you were looking for?
Jeff