Lightningbeam/PyGUI-2.5.3/Doc/Column.html

10 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>Column class</title></head>
<body><h1>class <span style="font-family: monospace;">Column(<a href="Frame.html">Frame</a>)</span></h1>A Column is a container that lays out a collection of components in a vertical column.<br><br>The
initial size of the container is made just big enough to hold its
contents. The horizontal alignment of items within the column may be
specified, and one item may optionally be designated to expand vertically 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;">Column(</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 Column 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; white-space: nowrap; text-align: left; font-family: monospace;">spacing = 10</td><td align="left" valign="top">Vertical 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="font-family: monospace;" align="left" nowrap="nowrap" valign="top">align = 'l'</td><td align="left" valign="top">Specifies horizontal alignment and anchoring of items. One of <span style="font-family: monospace;">'l'</span>, <span style="font-family: monospace;">'c'</span>, <span style="font-family: monospace;">'r'</span> or <span style="font-family: monospace;">'lr'</span> for left, centre, right or left-and-right.</td></tr><tr><td style="font-family: monospace;" align="left" nowrap="nowrap" 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" nowrap="nowrap" valign="top">expand = None</td><td style="vertical-align: top; text-align: left; width: 100%;">Specifies
which item, if any, is to change size vertically when the container is
resized. May be the item itself or an index into the item list. Items
above this item will be anchored to the top of the&nbsp;container, and
items below it will be anchored to the bottom of the&nbsp;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 column.</td></tr></tbody></table><br>---</body></html>