Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Who cares about Tktable ?

3 views
Skip to first unread message

Luc Moulinier

unread,
Nov 10, 2009, 4:47:16 AM11/10/09
to
Hello !
I am about to publish my app, but I'm stuck because of a bug in
tktable. This bug has been reported and acknowleged by Jeff Hobbs (bug
no 1886984). It seems there is no activity in the tkTable project.
I am wondering then if someone will fix the bugs reported.

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

Jeff Hobbs

unread,
Nov 10, 2009, 1:57:45 PM11/10/09
to
On Nov 10, 1:47 am, Luc Moulinier <luc.moulin...@igbmc.fr> wrote:
> I am about to publish my app, but I'm stuck because of a bug in
> tktable. This bug has been reported and acknowleged by Jeff Hobbs (bug
> no 1886984). It seems there is no activity in the tkTable project.
> I am wondering then if someone will fix the bugs reported.
>
> Does anyone apart from jh is affected to the tktable support ?

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

0 new messages