Textual: DatePicker
A DatePicker widget for textual. It can be used standalone or with a DateSelect opening the dialog.
DateSelect with DatePicker example:
Usage
from textual_datepicker import DateSelect
DateSelect(
placeholder="please select",
format="YYYY-MM-DD",
picker_mount="#main_container"
)
Define an initial value:
import pendulum
from textual_datepicker import DateSelect
DateSelect(
placeholder="please select",
format="YYYY-MM-DD",
date=pendulum.parse("2023-02-14"),
picker_mount="#main_container"
)
Installation
pip install textual-datepicker
Requires textual 0.6.0 or later.
Limitations
This textual widget is in early stage and has some limitations:
- It can only open below, not above: Make sure to reserve space below for the dialog.
- It needs a specific mount point (
picker_mount) where the dialog shall appear. This is needed because the container widget with the select itself could be too small. Maybe in future versions this will no longer be needed.
Release files for textual-datepicker 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| textual_datepicker-0.2.4.tar.gz | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| textual_datepicker-0.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.4 kB
Release files / textual_datepicker-0.2.4.tar.gz
| Download URL | textual_datepicker-0.2.4.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0384f1ada49daf652a7b0e6d123bbdb0b6a8b96ebfea0c9f02685466cefa5f47
|
|
BLAKE2b-256 checksum How to use checksums |
90b5649755b45602e62937cbfc98e3ceaee1ab7eec2e0a7a25ed3422927f966b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.1 CPython/3.10.6 Linux/5.19.0-35-generic
|
Release files / textual_datepicker-0.2.4-py3-none-any.whl
| Download URL | textual_datepicker-0.2.4-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70a059fecc6bab6ba39d9302b29f9725bb28278a3ec2ec0f80a3adb4bab82ba5
|
|
BLAKE2b-256 checksum How to use checksums |
c2d0fcc9631d70f19451484267ce710d6f77d05c59ab9c18e8400d1045d03a55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.1 CPython/3.10.6 Linux/5.19.0-35-generic
|