Module Tkinter :: Class Pack
[show private | hide private]
[frames | no frames]

Class Pack

Known Subclasses:
Widget

Geometry manager Pack.

Base class to use the methods pack_* in every widget.
Method Summary
  config(self, cnf, **kw)
Pack a widget in the parent widget.
  configure(self, cnf, **kw)
Pack a widget in the parent widget.
  forget(self)
Unmap this widget and do not use it for the packing order.
  info(self)
Return information about the packing options for this widget.
  pack(self, cnf, **kw)
Pack a widget in the parent widget.
  pack_configure(self, cnf, **kw)
Pack a widget in the parent widget.
  pack_forget(self)
Unmap this widget and do not use it for the packing order.
  pack_info(self)
Return information about the packing options for this widget.
  pack_propagate(self, flag)
Set or get the status for propagation of geometry information. (inherited from Misc)
  pack_slaves(self)
Return a list of all slaves of this widget in its packing order. (inherited from Misc)
  propagate(self, flag)
Set or get the status for propagation of geometry information. (inherited from Misc)
  slaves(self)
Return a list of all slaves of this widget in its packing order. (inherited from Misc)

Method Details

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

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=1 or 0 - expand widget if parent size grows
fill=NONE or X or Y or BOTH - fill widget if widget grows
in=master - use master to contain this widget
ipadx=amount - add internal padding in x direction
ipady=amount - add internal padding in y direction
padx=amount - add padding in x direction
pady=amount - add padding in y direction
side=TOP or BOTTOM or LEFT or RIGHT -  where to add this widget.

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

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=1 or 0 - expand widget if parent size grows
fill=NONE or X or Y or BOTH - fill widget if widget grows
in=master - use master to contain this widget
ipadx=amount - add internal padding in x direction
ipady=amount - add internal padding in y direction
padx=amount - add padding in x direction
pady=amount - add padding in y direction
side=TOP or BOTTOM or LEFT or RIGHT -  where to add this widget.

forget(self)

Unmap this widget and do not use it for the packing order.

info(self)

Return information about the packing options for this widget.

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

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=1 or 0 - expand widget if parent size grows
fill=NONE or X or Y or BOTH - fill widget if widget grows
in=master - use master to contain this widget
ipadx=amount - add internal padding in x direction
ipady=amount - add internal padding in y direction
padx=amount - add padding in x direction
pady=amount - add padding in y direction
side=TOP or BOTTOM or LEFT or RIGHT -  where to add this widget.

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

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=1 or 0 - expand widget if parent size grows
fill=NONE or X or Y or BOTH - fill widget if widget grows
in=master - use master to contain this widget
ipadx=amount - add internal padding in x direction
ipady=amount - add internal padding in y direction
padx=amount - add padding in x direction
pady=amount - add padding in y direction
side=TOP or BOTTOM or LEFT or RIGHT -  where to add this widget.

pack_forget(self)

Unmap this widget and do not use it for the packing order.

pack_info(self)

Return information about the packing options for this widget.

Generated by Epydoc 1.1 on Sat Feb 15 21:18:52 2003 http://epydoc.sf.net