Metadata-Version: 2.1
Name: textual-datepicker
Version: 0.1.0
Summary: A datepicker widget for Textual.
Home-page: https://github.com/mitosch/textual-datepicker
License: MIT
Keywords: textual,textual datepicker,textual dateselect
Author: Mischa Schindowski
Author-email: mschindowski@gmail.com
Requires-Python: >=3.7,<4.0
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows :: Windows 10
Classifier: Operating System :: Microsoft :: Windows :: Windows 11
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: pendulum
Requires-Dist: textual (>=0.6.0)
Project-URL: Repository, https://github.com/mitosch/textual-datepicker
Description-Content-Type: text/markdown

# Textual: DatePicker

A DatePicker widget for [textual](https://github.com/Textualize/textual). It can be used standalone or with a DateSelect opening the dialog.

DateSelect with DatePicker example:

![DateSelect with DatePicker](https://user-images.githubusercontent.com/922559/209947716-3ee53f74-4d98-4d9c-a261-afb84955d519.png)


## Usage

```python
from textual_datepicker import DateSelect

DateSelect(
  placeholder="please select",
  format="YYYY-MM-DD",
  picker_mount="#main_container"
)
```

## Installation

```bash
pip install textual-datepicker
```

Requires textual 0.6.0 or later.

## Limitations

This textual widget is in early stage and has some limitations:

* Mouse interaction is not yet implemented.
* 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.

