| Ticket UUID: | 1545765 | |||
| Title: | Grid anchor center problem in labelframes | |||
| Type: | Bug | Version: | obsolete: 8.5a4 | |
| Submitter: | fandom | Created on: | 2006-08-24 07:20:06 | |
| Subsystem: | 49. [grid] | Assigned To: | pspjuth | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2007-02-25 11:31:42 | |
| Resolution: | Fixed | Closed By: | pspjuth | |
| Closed on: | 2007-02-25 04:31:42 | |||
| Description: |
In the following code:
set extFrame [labelframe .extFrame -text Greet \
-bd 2 -relief groove -bg red]
set button1 [checkbutton $extFrame.b1 \
-text Hello -variable hello]
set button2 [checkbutton $extFrame.b2 \
-text goodbye -variable goodbye]
grid anchor $extFrame c
grid $extFrame -padx 10 -pady 10 -ipadx 5
grid $button1 -sticky w
grid $button2 -sticky w
I was expecting the checkbuttons to be centered both
horizontally and vertically, yet they stick to the
upper side of the labelframe.
| |||
| User Comments: |
pspjuth added on 2006-08-24 14:29:54:
Logged In: YES user_id=98900 The bug is in TkComputeAnchor which assumes symmetric internal borders when centering. Borders were symmetric before labelframe was added and this was not updated properly. The labelframe is currently unique in having assymetric borders vertically which is why it shows up there. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki