Skip to main content

A datepicker widget for Textual.

Project description

Textual: DatePicker

A DatePicker widget for textual. It can be used standalone or with a DateSelect opening the dialog.

NOTE: This package is in a concept phase. A working version (>= 0.1.0) will be release in January 2023. I'm currently preparing it for publishing on PyPI and happy to receive feedback.

Usage

from textual_datepicker import DateSelect

DateSelect(
  placeholder="please select",
  format="YYYY-MM-DD",
  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:

  • The default given date will probably not working at this time. Planned for 0.1.0.
  • 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 needed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

textual_datepicker-0.0.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

textual_datepicker-0.0.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file textual_datepicker-0.0.1.tar.gz.

File metadata

  • Download URL: textual_datepicker-0.0.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.6 Linux/5.15.0-56-generic

File hashes

Hashes for textual_datepicker-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a2c7c7972d459a1092e383dbab8a41008430be6dc3ae666562a0ed7efd37b48d
MD5 116058b222ef68d200fc1ae4554fba88
BLAKE2b-256 3fb35f6e056ee7154177ec458d41dab8e39d8a8b53c520348518db4c17c72522

See more details on using hashes here.

File details

Details for the file textual_datepicker-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: textual_datepicker-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.6 Linux/5.15.0-56-generic

File hashes

Hashes for textual_datepicker-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de3368dcb831965dba6b842ee556bdb185f4a7fa82639fa0308d38d8d4f46d65
MD5 6f8f2ccb37c2bef2d41f3f747c936081
BLAKE2b-256 3d1693b6d4a5ec10ddc5179c16e2c3e8e0506e24204f0a6e416df0a3d9dfc0ad

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page