column
pdwidgets.widgets.column
Vertical layout container.
Column(parent, x=0, y=0, w=None, h=None, align=None, align_to=None, fg=None, bg=None, visible=True, value=None, padding=None, spacing=PAD)
Bases: _Layout
A container that stacks its children top-to-bottom with fixed spacing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
parent
|
Widget
|
The parent widget or screen that contains this column. |
required |
x
|
int
|
The x-coordinate of the column. |
0
|
y
|
int
|
The y-coordinate of the column. |
0
|
w
|
int
|
The width of the column. |
None
|
h
|
int
|
The height of the column. |
None
|
align
|
int
|
The alignment of the column. |
None
|
align_to
|
Widget
|
The widget to align to. |
None
|
fg
|
int
|
The foreground color of the column. |
None
|
bg
|
int
|
The background color of the column. |
None
|
visible
|
bool
|
The visibility of the column. |
True
|
value
|
Any
|
User-assigned value of the column. |
None
|
padding
|
tuple
|
The padding on each side of the column. |
None
|
spacing
|
int
|
Gap in pixels inserted between children (default PAD). |
PAD
|
Usage
col = Column(screen, spacing=6) Label(col, value="One") Label(col, value="Two")