12 lines
3.3 KiB
HTML
12 lines
3.3 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Row class</title></head>
|
|
<body><h1>class <span style="font-family: monospace;">Row(<a href="Frame.html">Frame</a>)</span></h1>A Row is a container that lays out a collection of components in a horizontal row.<br><br>The
|
|
initial size of the container is made just big enough to hold its
|
|
contents. The vertical alignment of items within the row may be
|
|
specified, and one item may optionally be designated to expand
|
|
horizontally when the container is resized. <br><br>In addition, the width and/or height of all items may optionally be equalized before they are laid out.<br><h2>Constructor</h2><dl style="margin-left: 40px;"><dt><span style="font-family: monospace;">Row(</span><span style="font-style: italic;">items</span>, <span style="font-style: italic;">keyword</span> <span style="font-family: monospace;">=</span> <span style="font-style: italic;">value</span><span style="font-family: monospace;">,</span> ...<span style="font-family: monospace;">)</span></dt><dd>Creates a Row containing the specified <span style="font-style: italic;">items</span>, which should be a sequence of Components. The following keyword arguments may be used:</dd></dl><table style="text-align: left; margin-left: 80px;" border="0" cellpadding="4" cellspacing="0"><tbody><tr><td style="vertical-align: top; text-align: left; font-family: monospace; white-space: nowrap;">spacing = 10</td><td align="left" valign="top">Horizontal space to leave between items.</td></tr><tr><td style="white-space: nowrap;"><span style="font-family: monospace;">padding = (0, 0)</span></td><td>Space to leave horizontally and vertically around all the items.</td></tr><tr><td style="vertical-align: top; text-align: left; font-family: monospace; white-space: nowrap;">align = 'c'</td><td align="left" valign="top">Specifies vertical alignment and anchoring of items. One of <span style="font-family: monospace;">'t'</span>, <span style="font-family: monospace;">'c'</span>, <span style="font-family: monospace;">'b'</span> or <span style="font-family: monospace;">'tb'</span> for top, centre, bottom or top-and-bottom.</td></tr><tr><td style="font-family: monospace;" align="left" valign="top">equalize = ''</td><td style="vertical-align: top; text-align: left; width: 100%;">Specifies whether to make the size of all items equal in the horizontal and/or vertical direction. One of <span style="font-family: monospace;">'w'</span>, <span style="font-family: monospace;">'h'</span> or <span style="font-family: monospace;">'wh'</span>.</td></tr><tr><td style="font-family: monospace;" align="left" valign="top">expand = None</td><td style="vertical-align: top; text-align: left; width: 100%;">Specifies
|
|
which item, if any, is to change size horizontally when the container
|
|
is resized. May be the item itself or an index into the item list.
|
|
Items to the left of this item will be anchored to the left of
|
|
the container, and items to the right will be anchored to the
|
|
right of the container.<br><br>If specified by an index, the item at that index may be <span style="font-family: monospace;">None</span> to leave an expanding space in the row.</td></tr></tbody></table><br>---</body></html> |