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)
| 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 |