divider
pdwidgets.widgets.divider
Horizontal divider widget.
Divider(parent, x=0, y=0, w=None, h=None, align=None, align_to=None, fg=None, bg=None, visible=True, value=None, padding=None, thickness=1)
Bases: Widget
Thin horizontal rule for separating sections.
A thin horizontal rule used to separate sections in cards and lists.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
parent
|
Widget
|
Parent container. |
required |
thickness
|
int
|
Line height in pixels (default 1). |
1
|
fg
|
int
|
Line color; defaults to |
None
|
draw(_=None)
Paint the parent background, then the centered hairline.