row
pdwidgets.widgets.row
Horizontal layout container.
Row(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 lays its children out left-to-right with fixed spacing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
parent
|
Widget
|
The parent widget or screen that contains this row. |
required |
x
|
int
|
The x-coordinate of the row. |
0
|
y
|
int
|
The y-coordinate of the row. |
0
|
w
|
int
|
The width of the row. |
None
|
h
|
int
|
The height of the row. |
None
|
align
|
int
|
The alignment of the row. |
None
|
align_to
|
Widget
|
The widget to align to. |
None
|
fg
|
int
|
The foreground color of the row. |
None
|
bg
|
int
|
The background color of the row. |
None
|
visible
|
bool
|
The visibility of the row. |
True
|
value
|
Any
|
User-assigned value of the row. |
None
|
padding
|
tuple
|
The padding on each side of the row. |
None
|
spacing
|
int
|
Gap in pixels inserted between children (default PAD). |
PAD
|
Usage
row = Row(screen, spacing=6) Button(row, label="A") Button(row, label="B")