MCPcopy Index your code
hub / github.com/python/cpython / pack_configure

Method pack_configure

Lib/tkinter/__init__.py:2656–2674  ·  view source on GitHub ↗

Pack a widget in the parent widget. Use as options: after=widget - pack it after you have packed widget anchor=NSEW (or subset) - position widget according to given direction before=widget - pack it before you will pack widget expand=

(self, cnf={}, **kw)

Source from the content-addressed store, hash-verified

2654 Base class to use the methods pack_* in every widget."""
2655
2656 def pack_configure(self, cnf={}, **kw):
2657 """Pack a widget in the parent widget. Use as options:
2658 after=widget - pack it after you have packed widget
2659 anchor=NSEW (or subset) - position widget according to
2660 given direction
2661 before=widget - pack it before you will pack widget
2662 expand=bool - expand widget if parent size grows
2663 fill=NONE or X or Y or BOTH - fill widget if widget grows
2664 in=container - use the container widget to contain this widget
2665 in_=container - see 'in' option description
2666 ipadx=amount - add internal padding in x direction
2667 ipady=amount - add internal padding in y direction
2668 padx=amount - add padding in x direction
2669 pady=amount - add padding in y direction
2670 side=TOP or BOTTOM or LEFT or RIGHT - where to add this widget.
2671 """
2672 self.tk.call(
2673 ('pack', 'configure', self._w)
2674 + self._options(cnf, kw))
2675
2676 pack = configure = config = pack_configure
2677

Callers 12

checkMethod · 0.80
test_pack_forgetMethod · 0.80
test_pack_infoMethod · 0.80
test_pack_propagateMethod · 0.80
test_pack_contentMethod · 0.80
test_pack_slavesMethod · 0.80

Calls 2

callMethod · 0.45
_optionsMethod · 0.45

Tested by 12

checkMethod · 0.64
test_pack_forgetMethod · 0.64
test_pack_infoMethod · 0.64
test_pack_propagateMethod · 0.64
test_pack_contentMethod · 0.64
test_pack_slavesMethod · 0.64