@@ -1866,15 +1866,15 @@ def __repr__(self):
18661866 return '<%s.%s object %s>' % (
18671867 self .__class__ .__module__ , self .__class__ .__qualname__ , self ._w )
18681868
1869- # Pack methods that apply to the master
1869+ # Pack methods that apply to the container widget
18701870 _noarg_ = ['_noarg_' ]
18711871
18721872 def pack_propagate (self , flag = _noarg_ ):
18731873 """Set or get the status for propagation of geometry information.
18741874
1875- A boolean argument specifies whether the geometry information
1876- of the slaves will determine the size of this widget. If no argument
1877- is given the current setting will be returned.
1875+ A boolean argument specifies whether the size of this container will
1876+ be determined by the geometry information of its content.
1877+ If no argument is given the current setting will be returned.
18781878 """
18791879 if flag is Misc ._noarg_ :
18801880 return self ._getboolean (self .tk .call (
@@ -1885,28 +1885,28 @@ def pack_propagate(self, flag=_noarg_):
18851885 propagate = pack_propagate
18861886
18871887 def pack_slaves (self ):
1888- """Return a list of all slaves of this widget
1889- in its packing order ."""
1888+ """Returns a list of all of the content widgets in the packing order
1889+ for this container ."""
18901890 return [self ._nametowidget (x ) for x in
18911891 self .tk .splitlist (
18921892 self .tk .call ('pack' , 'slaves' , self ._w ))]
18931893
18941894 slaves = pack_slaves
18951895
1896- # Place method that applies to the master
1896+ # Place method that applies to the container widget
18971897 def place_slaves (self ):
1898- """Return a list of all slaves of this widget
1899- in its packing order ."""
1898+ """Returns a list of all the content widgets for which this widget is
1899+ the container ."""
19001900 return [self ._nametowidget (x ) for x in
19011901 self .tk .splitlist (
19021902 self .tk .call (
19031903 'place' , 'slaves' , self ._w ))]
19041904
1905- # Grid methods that apply to the master
1905+ # Grid methods that apply to the container widget
19061906
19071907 def grid_anchor (self , anchor = None ): # new in Tk 8.5
19081908 """The anchor value controls how to place the grid within the
1909- master when no row/column has any weight.
1909+ container widget when no row/column has any weight.
19101910
19111911 The default anchor is nw."""
19121912 self .tk .call ('grid' , 'anchor' , self ._w , anchor )
@@ -1923,7 +1923,7 @@ def grid_bbox(self, column=None, row=None, col2=None, row2=None):
19231923 starts at that cell.
19241924
19251925 The returned integers specify the offset of the upper left
1926- corner in the master widget and the width and height.
1926+ corner in the container widget and the width and height.
19271927 """
19281928 args = ('grid' , 'bbox' , self ._w )
19291929 if column is not None and row is not None :
@@ -1981,7 +1981,7 @@ def grid_columnconfigure(self, index, cnf={}, **kw):
19811981
19821982 def grid_location (self , x , y ):
19831983 """Return a tuple of column and row which identify the cell
1984- at which the pixel at position X and Y inside the master
1984+ at which the pixel at position X and Y inside the container
19851985 widget is located."""
19861986 return self ._getints (
19871987 self .tk .call (
@@ -1990,9 +1990,9 @@ def grid_location(self, x, y):
19901990 def grid_propagate (self , flag = _noarg_ ):
19911991 """Set or get the status for propagation of geometry information.
19921992
1993- A boolean argument specifies whether the geometry information
1994- of the slaves will determine the size of this widget. If no argument
1995- is given, the current setting will be returned.
1993+ A boolean argument specifies whether the size of this container will
1994+ be determined by the geometry information of its content.
1995+ If no argument is given the current setting will be returned.
19961996 """
19971997 if flag is Misc ._noarg_ :
19981998 return self ._getboolean (self .tk .call (
@@ -2018,8 +2018,13 @@ def grid_size(self):
20182018 size = grid_size
20192019
20202020 def grid_slaves (self , row = None , column = None ):
2021- """Return a list of all slaves of this widget
2022- in its packing order."""
2021+ """Returns a list of the content widgets.
2022+
2023+ If no arguments are supplied, a list of all of the content in this
2024+ container widget is returned, most recently managed first.
2025+ If ROW or COLUMN is specified, only the content in the row or
2026+ column is returned.
2027+ """
20232028 args = ()
20242029 if row is not None :
20252030 args = args + ('-row' , row )
@@ -2605,8 +2610,8 @@ def pack_configure(self, cnf={}, **kw):
26052610 before=widget - pack it before you will pack widget
26062611 expand=bool - expand widget if parent size grows
26072612 fill=NONE or X or Y or BOTH - fill widget if widget grows
2608- in=master - use master to contain this widget
2609- in_=master - see 'in' option description
2613+ in=container - use the container widget to contain this widget
2614+ in_=container - see 'in' option description
26102615 ipadx=amount - add internal padding in x direction
26112616 ipady=amount - add internal padding in y direction
26122617 padx=amount - add padding in x direction
@@ -2645,25 +2650,31 @@ class Place:
26452650
26462651 def place_configure (self , cnf = {}, ** kw ):
26472652 """Place a widget in the parent widget. Use as options:
2648- in=master - master relative to which the widget is placed
2649- in_=master - see 'in' option description
2650- x=amount - locate anchor of this widget at position x of master
2651- y=amount - locate anchor of this widget at position y of master
2653+ in=container - the container widget relative to which this widget is
2654+ placed
2655+ in_=container - see 'in' option description
2656+ x=amount - locate anchor of this widget at position x of the
2657+ container widget
2658+ y=amount - locate anchor of this widget at position y of the
2659+ container widget
26522660 relx=amount - locate anchor of this widget between 0.0 and 1.0
2653- relative to width of master (1.0 is right edge)
2661+ relative to width of the container widget (1.0 is
2662+ right edge)
26542663 rely=amount - locate anchor of this widget between 0.0 and 1.0
2655- relative to height of master (1.0 is bottom edge)
2656- anchor=NSEW (or subset) - position anchor according to given direction
2664+ relative to height of the container widget (1.0 is
2665+ bottom edge)
2666+ anchor=NSEW (or subset) - position anchor according to given
2667+ direction
26572668 width=amount - width of this widget in pixel
26582669 height=amount - height of this widget in pixel
26592670 relwidth=amount - width of this widget between 0.0 and 1.0
2660- relative to width of master (1.0 is the same width
2661- as the master )
2671+ relative to width of the container widget (1.0 is
2672+ the same width as the container widget )
26622673 relheight=amount - height of this widget between 0.0 and 1.0
2663- relative to height of master (1.0 is the same
2664- height as the master )
2674+ relative to height of the container widget (1.0
2675+ is the same height as the container widget )
26652676 bordermode="inside" or "outside" - whether to take border width of
2666- master widget into account
2677+ the container widget into account
26672678 """
26682679 self .tk .call (
26692680 ('place' , 'configure' , self ._w )
@@ -2699,8 +2710,8 @@ def grid_configure(self, cnf={}, **kw):
26992710 """Position a widget in the parent widget in a grid. Use as options:
27002711 column=number - use cell identified with given column (starting with 0)
27012712 columnspan=number - this widget will span several columns
2702- in=master - use master to contain this widget
2703- in_=master - see 'in' option description
2713+ in=container - use the container widget to contain this widget
2714+ in_=container - see 'in' option description
27042715 ipadx=amount - add internal padding in x direction
27052716 ipady=amount - add internal padding in y direction
27062717 padx=amount - add padding in x direction
0 commit comments