Back to index

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

List of all members.

Public Member Functions

def place_configure
def place_forget
def place_info

Static Public Attributes

 place = configureconfigplace_configure
 forget = place_forget
 info = place_info
 slaves = place_slavesMisc.place_slaves

Detailed Description

Geometry manager Place.

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

Definition at line 1815 of file __init__.py.


Member Function Documentation

def tkinter.Place.place_configure (   self,
  cnf = {},
  kw 
)
Place a widget in the parent widget. Use as options:
in=master - master relative to which the widget is placed
in_=master - see 'in' option description
x=amount - locate anchor of this widget at position x of master
y=amount - locate anchor of this widget at position y of master
relx=amount - locate anchor of this widget between 0.0 and 1.0
      relative to width of master (1.0 is right edge)
rely=amount - locate anchor of this widget between 0.0 and 1.0
      relative to height of master (1.0 is bottom edge)
anchor=NSEW (or subset) - position anchor according to given direction
width=amount - width of this widget in pixel
height=amount - height of this widget in pixel
relwidth=amount - width of this widget between 0.0 and 1.0
          relative to width of master (1.0 is the same width
          as the master)
relheight=amount - height of this widget between 0.0 and 1.0
           relative to height of master (1.0 is the same
           height as the master)
bordermode="inside" or "outside" - whether to take border width of
                           master widget into account

Definition at line 1819 of file __init__.py.

01819 
01820     def place_configure(self, cnf={}, **kw):
01821         """Place a widget in the parent widget. Use as options:
01822         in=master - master relative to which the widget is placed
01823         in_=master - see 'in' option description
01824         x=amount - locate anchor of this widget at position x of master
01825         y=amount - locate anchor of this widget at position y of master
01826         relx=amount - locate anchor of this widget between 0.0 and 1.0
01827                       relative to width of master (1.0 is right edge)
01828         rely=amount - locate anchor of this widget between 0.0 and 1.0
01829                       relative to height of master (1.0 is bottom edge)
01830         anchor=NSEW (or subset) - position anchor according to given direction
01831         width=amount - width of this widget in pixel
01832         height=amount - height of this widget in pixel
01833         relwidth=amount - width of this widget between 0.0 and 1.0
01834                           relative to width of master (1.0 is the same width
01835                           as the master)
01836         relheight=amount - height of this widget between 0.0 and 1.0
01837                            relative to height of master (1.0 is the same
01838                            height as the master)
01839         bordermode="inside" or "outside" - whether to take border width of
01840                                            master widget into account
01841         """
01842         self.tk.call(
01843               ('place', 'configure', self._w)
              + self._options(cnf, kw))

Here is the call graph for this function:

Unmap this widget.

Definition at line 1845 of file __init__.py.

01845 
01846     def place_forget(self):
01847         """Unmap this widget."""
        self.tk.call('place', 'forget', self._w)
def tkinter.Place.place_info (   self)
Return information about the placing options
for this widget.

Definition at line 1849 of file __init__.py.

01849 
01850     def place_info(self):
01851         """Return information about the placing options
01852         for this widget."""
01853         words = self.tk.splitlist(
01854             self.tk.call('place', 'info', self._w))
01855         dict = {}
01856         for i in range(0, len(words), 2):
01857             key = words[i][1:]
01858             value = words[i+1]
01859             if value[:1] == '.':
01860                 value = self._nametowidget(value)
01861             dict[key] = value
        return dict

Member Data Documentation

Reimplemented in tkinter.ttk.Panedwindow.

Definition at line 1848 of file __init__.py.

Definition at line 1862 of file __init__.py.

tkinter.Place.place = configureconfigplace_configure [static]

Definition at line 1844 of file __init__.py.

tkinter.Place.slaves = place_slavesMisc.place_slaves [static]

Definition at line 1863 of file __init__.py.


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