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.
    Inherited from Misc
  pack_propagate(self, flag)
Set or get the status for propagation of geometry information.
  pack_slaves(self)
Return a list of all slaves of this widget in its packing order.
  propagate(self, flag)
Set or get the status for propagation of geometry information.
  slaves(self)
Return a list of all slaves of this widget in its packing order.

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=bool - 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=bool - 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=bool - 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=bool - 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 2.1 on Mon Jan 31 12:03:17 2005 http://epydoc.sf.net