Metadata-Version: 2.4
Name: tkcss
Version: 0.2.0
Summary: Stylisez vos interfaces tkinter avec du CSS
Author: TkCss
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: User Interfaces
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Provides-Extra: images
Requires-Dist: Pillow>=9.0; extra == "images"
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: provides-extra
Dynamic: requires-python
Dynamic: summary

# TkCss

**Stylisez vos interfaces tkinter avec du CSS.**

```python
from tkcss import Window, Text, Button

app = Window("Mon App", width=400, height=250, css="""
    window { background-color: #1a1a2e; }
    text   { color: white; font-size: 18px; margin: 20px; }
    button { background-color: #e94560; color: white; padding: 10px; }
    button:hover { background-color: #c73652; }
""")

app.add(Text("Bienvenue !"))
app.add(Button("Démarrer", on_click=lambda: print("Cliqué !")))
app.center().run()
```

## Installation

```bash
pip install tkcss
```

## Fonctionnalités

- ✅ Sélecteurs par tag, classe (`.nom`), ID (`#id`)
- ✅ Pseudo-classes `:hover` et `:focus`
- ✅ Fichiers `.css` externes
- ✅ Composants : `Window`, `Text`, `Button`, `Input`, `Frame`, `Image`
- ✅ Propriétés : couleurs, polices, tailles, padding, margin, cursor, relief
- ✅ 0 dépendance (Pillow optionnel pour les images JPEG)

## Documentation

Ouvrez `documentation.html` dans votre navigateur.

## Licence

MIT
