Back to index

python3.2  3.2.2
Public Member Functions | Static Public Attributes
tkinter.Pack Class Reference
Inheritance diagram for tkinter.Pack:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def pack_configure
def pack_forget
def pack_info

Static Public Attributes

 pack = configureconfigpack_configure
 forget = pack_forget
 info = pack_info
 propagate = pack_propagateMisc.pack_propagate
 slaves = pack_slavesMisc.pack_slaves

Detailed Description

Geometry manager Pack.

Base class to use the methods pack_* in every widget.

Definition at line 1770 of file __init__.py.


Member Function Documentation

def tkinter.Pack.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
in_=master - see 'in' option description
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.

Definition at line 1774 of file __init__.py.

01774 
01775     def pack_configure(self, cnf={}, **kw):
01776         """Pack a widget in the parent widget. Use as options:
01777         after=widget - pack it after you have packed widget
01778         anchor=NSEW (or subset) - position widget according to
01779                                   given direction
01780         before=widget - pack it before you will pack widget
01781         expand=bool - expand widget if parent size grows
01782         fill=NONE or X or Y or BOTH - fill widget if widget grows
01783         in=master - use master to contain this widget
01784         in_=master - see 'in' option description
01785         ipadx=amount - add internal padding in x direction
01786         ipady=amount - add internal padding in y direction
01787         padx=amount - add padding in x direction
01788         pady=amount - add padding in y direction
01789         side=TOP or BOTTOM or LEFT or RIGHT -  where to add this widget.
01790         """
01791         self.tk.call(
01792               ('pack', 'configure', self._w)
              + self._options(cnf, kw))

Here is the call graph for this function:

def tkinter.Pack.pack_forget (   self)
Unmap this widget and do not use it for the packing order.

Definition at line 1794 of file __init__.py.

01794 
01795     def pack_forget(self):
01796         """Unmap this widget and do not use it for the packing order."""
        self.tk.call('pack', 'forget', self._w)
def tkinter.Pack.pack_info (   self)
Return information about the packing options
for this widget.

Definition at line 1798 of file __init__.py.

01798 
01799     def pack_info(self):
01800         """Return information about the packing options
01801         for this widget."""
01802         words = self.tk.splitlist(
01803             self.tk.call('pack', 'info', self._w))
01804         dict = {}
01805         for i in range(0, len(words), 2):
01806             key = words[i][1:]
01807             value = words[i+1]
01808             if value[:1] == '.':
01809                 value = self._nametowidget(value)
01810             dict[key] = value
        return dict

Member Data Documentation

Reimplemented in tkinter.ttk.Panedwindow.

Definition at line 1797 of file __init__.py.

Definition at line 1811 of file __init__.py.

tkinter.Pack.pack = configureconfigpack_configure [static]

Definition at line 1793 of file __init__.py.

tkinter.Pack.propagate = pack_propagateMisc.pack_propagate [static]

Definition at line 1812 of file __init__.py.

tkinter.Pack.slaves = pack_slavesMisc.pack_slaves [static]

Definition at line 1813 of file __init__.py.


The documentation for this class was generated from the following file: