Python pack attribute

widget.pack( pack_options )

Here is the list of possible options −

  • expand: When set to true, widget expands to fill any space not otherwise used in widget's parent.

  • fill: Determines whether widget fills any extra space allocated to it by the packer, or keeps its own minimal dimensions: NONE (default), X (fill only horizontally), Y (fill only vertically), or BOTH (fill both horizontally and vertically).

  • side: Determines which side of the parent widget packs against: TOP (default), BOTTOM, LEFT, or RIGHT.

posted @ 2017-08-18 15:04  njuptlwh  阅读(159)  评论(0编辑  收藏  举报