Metadata-Version: 2.4
Name: wre-tk
Version: 0.1.2
Summary: Кроссплатформенная GUI-библиотека на чистом WinAPI для WinRE
Author-email: deltakidd <art991122@example.com>
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: Microsoft :: Windows
Classifier: Environment :: Win32 (MS Windows)
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# WRE-tk

**WRE-tk** is a lightweight, tkinter-compatible GUI library built on pure WinAPI (`user32`, `gdi32`, `kernel32`). It is designed to work flawlessly in **Windows Recovery Environment (WinRE)** and **WinPE**, where the standard `tkinter` fails due to missing Tcl/Tk libraries and the `ITaskbarList3` API.

No `comctl32`, no `comdlg32`, no external dependencies. Just pure Windows API through Python `ctypes`.

## ✨ Features

- **100% Python & ctypes:** Works on any Python 3.8+ without needing `pip install` for C-extensions.
- **WinRE/WinPE Ready:** Does not crash on missing taskbar or explorer.exe.
- **Tkinter-compatible API:** If you know `tkinter`, you know `wre_tk`. Just replace `import tkinter` with `import wre_tk`.
- **Core Widgets:** `Frame`, `Label`, `Button`, `Entry`, `Text`, `Canvas`, `Listbox`, `Combobox`, `Spinbox`, `Checkbutton`, `Radiobutton`, `Scale`, `Notebook`, `Treeview`, `PanedWindow`, `Progressbar`, `Menu`, `Scrollbar`.
- **Window Management:** `geometry`, `title`, `protocol`, `overrideredirect`, `attributes` (`-alpha`, `-topmost`, `-toolwindow`, `-fullscreen`, `-transparentcolor`).
- **Custom Drawing:** Buttons and Treeview support owner-draw (custom colors and styles).
- **Optional Extensions (`wre_ttk`):** RichText support (colored text in `Text`) and Icons in `Treeview` (via `DrawIconEx`).

## 📦 Installation

```bash
pip install wre-tk
*(Обратите внимание: пакет на PyPI называется `wre-tk`, но импортируется как `wre_tk`).*
