Metadata-Version: 2.4
Name: guipi26
Version: 0.1.0a1
Summary: A fast custom-rendered Windows UI engine for Python with a Bootstrap-style shell. Early preview — APIs will change.
Project-URL: Homepage, https://github.com/dillanstephenson/guipi26
Project-URL: Source, https://github.com/dillanstephenson/guipi26
Project-URL: Issues, https://github.com/dillanstephenson/guipi26/issues
Author: Dillan Stephenson
License: MIT License
        
        Copyright (c) 2026 Dillan Stephenson
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: ctypes,dashboard,gui,sidebar,ui,win32,windows
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Win32 (MS Windows)
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: User Interfaces
Classifier: Topic :: Software Development :: Widget Sets
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# GUIpi26

> **Early preview (alpha).** This is a proof of concept — expect breaking API changes between releases. Pin a specific version if you build on it.

A fast, custom-rendered Windows UI engine for Python. No Tkinter, no Qt — just `ctypes` over Win32 and GDI, with a small set of modern controls and a Bootstrap-style sidebar shell.

> Windows only. Python 3.8+.

## Install

```
pip install --pre guipi26
```

(`--pre` is required while GUIpi26 is in alpha. Plain `pip install guipi26` will skip pre-releases.)

## Hello, sidebar

```python
from guipi26 import (
    create_window, set_theme, create_collapsible_nav_bar,
    create_label, create_card, create_nav_bar,
)

app = create_window("My App", 1200, 760)
set_theme(app, background="#f5f6f8", surface="#ffffff", accent="#0d6efd")

create_collapsible_nav_bar(
    app, "MyApp",
    [
        {"key": "home", "title": "Home", "subtitle": "Start here"},
        {"key": "stats", "title": "Stats", "subtitle": "Numbers"},
    ],
    width=240, collapsed_width=72, selected_key="home",
)

cx = app.content_origin_x(padding=32)

create_label(app, "Home", x=cx, y=32, width=420, height=40, style="title", tab="home")
create_nav_bar(app, "Today", x=cx, y=130, width=800, subtitle="A quick look.", tab="home")
create_card(app, "Sessions", "24", x=cx, y=200, width=240, height=110, subtitle="up 12%", accent="#0d6efd", tab="home")

create_label(app, "Stats", x=cx, y=32, width=420, height=40, style="title", tab="stats")

app.mainloop()
```

## What's in the box

- `create_window` — the host window
- `create_collapsible_nav_bar` — full-height left sidebar with collapse toggle
- `create_nav_bar` — page header with title, subtitle, and action buttons
- `create_label`, `create_button`
- `create_card`, `create_panel`
- `create_grid` — simple data grid
- `create_chart` — bar chart
- `create_horizontal_grid`, `create_vertical_grid` — layout helpers
- `set_theme` — background, surface, accent, etc.

Tag any control with `tab="key"` to scope it to a sidebar entry. The shell only paints controls whose tag matches the active sidebar key (or controls with no tag).

## Example

A full dashboard example lives in [`examples/dashboard.py`](examples/dashboard.py):

```
python examples/dashboard.py
```

## License

MIT — see [LICENSE](LICENSE).

## Documentation

Full docs live in [`docs/`](docs/README.md):

- [Getting started](docs/getting-started.md)
- [Components](docs/components.md)
- [Layout & responsiveness](docs/layout.md)
- [Theming](docs/theming.md)
- [Card collision safety](docs/collision-safety.md)
- [API reference](docs/api-reference.md)
- [Publishing](docs/publishing.md)
