Using grid within a Tile labelframe
- From: Andrés García <fandom@xxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 23 Aug 2006 01:16:12 +0200
Hi,
I am having some trouble understanding the way grid
works withing a labelframe in Tcl/Tk 8.5a4.
A sample program would be:
set extFrame [ttk::labelframe .extFrame -labelanchor nw \
-labelwidget [ttk::label .lb -text Greet]]
set button1 [checkbutton $extFrame.b1 -text Hello -variable hello]
set button2 [checkbutton $extFrame.b2 -text goodbye -variable goodbye]
if {$::tcl_version>=8.5} {
# grid anchor $extFrame c
}
grid $extFrame -padx 10 -pady 10 -ipadx 5
grid $button1 -sticky w
grid $button2 -sticky w
The buttons are in the left down corner, uncomenting the grid
anchor command, they are centered horizontaly, but they touch
the upper line of the labelframe.
Is they way it is meant to be?
I was expecting them to be centered in both axes, and while I
can made them centered doing:
grid $button1 -sticky w -pady {10 0}
it feels like a kludge.
Thanks,
Andres
.
- Follow-Ups:
- Re: Using grid within a Tile labelframe
- From: Peter Spjuth
- Re: Using grid within a Tile labelframe
- From: Joe English
- Re: Using grid within a Tile labelframe
- Prev by Date: Re: The Weakness of Lisp
- Next by Date: Re: executing modal dialogs in different processes
- Previous by thread: [TWAPI] how can I use the twapi extension to send files to a printer
- Next by thread: Re: Using grid within a Tile labelframe
- Index(es):
Relevant Pages
|