|
From: Vince D. <vin...@gm...> - 2006-03-26 22:08:47
|
This simple script creates two buttons (one tk, one Tile), on TkAqua:
package require tile
toplevel .tt -bg red
button .tt.b -text "Cancel" -padx 0 -pady 0 -bd 0 -highlightthickness 0
ttk::button .tt.b2 -text "Cancel" -padding {0 1 0 1}
place .tt.b -x 50 -y 20 -width 63 -height 21
place .tt.b2 -x 50 -y 50 -width 63 -height 21
Despite both being the same size, the tile one leaves so much space to
the left of the 'C' that there isn't enough room to fit in the whole
text, and so the 'l' isn't drawn.
Any suggestions on how to fix this?
I also note that both buttons have a couple of pixels spare above the
button, which is surprising since the configuration options in this
artificial example aim to get rid of it!
cheers,
Vince.
|