Pack : Python GUI

Pack


The Pack geometry manager packs widgets in rows or columns. We can use options like fillexpand, and side to control this geometry manager.
  • 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, BOTTOM, LEFT, or RIGHT. The default is TOP.
  • anchor - Anchors are used to define where text is positioned relative to a reference point. The anchor attributes are: n, s, e, w, center, nw, sw, be, and se. The default is center.

Post a Comment

0 Comments