#!/usr/bin/wish # fill 與 expand 的差別 button .top button .left button .right button .bottom # 以下四種 pack .top 的方式, 請逐一試過. 每次都把主視窗放大, # 看看 .top 的大小與 .top 所分到的 parcel 大小如何改變. pack .top -side top -fill both # pack .top -side top -fill x # pack .top -side top -fill y # pack .top -side top -expand yes pack .left -side left -expand yes -fill both pack .right -side right -expand yes -fill both pack .bottom -side bottom -expand yes -fill both # 特別注意 .bottom 雖然 pack 的 -expand 與 -fill 選項和大家都一樣, # 但是因為 -side 是上下, 因此 master 擴張時, .bottom 分不到額外的 # 水平空間, 只分到額外的垂直空間