Skip to main content

SSUI

GUI-библиотека на Rust с публичным API на Python. Аппаратное ускорение через Direct3D 11 / Direct2D / DirectWrite на Windows, реактивные сигналы, более 60 виджетов, четыре темы и CSS-подмножество. Порт на Linux (Skia через OpenGL) в работе — см. docs/LINUX.md.

Возможности

  • Retained-mode дерево виджетов, раскладка grow/align/pin
  • Авто-высота контейнеров по детям, скрытие узла из раскладки
  • Пределы размеров с подъёмом вверх по дереву: минимум колонок таблицы сам не даёт разделителю её перекрыть
  • Реактивность на сигналах: bind, bindv, bindl, bindt
  • Двусторонний sig у виджетов ввода и программная установка состояния: форму можно заполнить данными из внешнего источника
  • Отключение узлов, поля-пароли и уведомления в любом углу окна
  • Контекстные меню, привязанные к узлу, через rmb и popup
  • Колонки tbl и tre тянутся мышью, шапка любой высоты с переносом
  • Раскрытие групп tre переживает пересборку данных, как в Tkinter
  • push — сообщение поверх всех окон в любой точке экрана
  • Канва с событиями мыши, прокруткой и панорамированием
  • Дерево с колонками, множественным выбором и цветом ячеек
  • Горячие клавиши, буфер обмена, нативные файловые диалоги
  • Работа из фоновых потоков через win.post()
  • Живая смена палитры и достройка дерева после показа окна
  • Обводка любого узла: win.brdln(node, "#RRGGBB", w=2.0) или правило CSS border; работает и на канве
  • Иконочные кнопки-переключатели: tgl(icon=..., tip=...)
  • Подсказки типов: .pyi и маркер py.typed

Требования

  • Windows 10/11 — полная поддержка
  • Linux — в разработке, собирается с фичей linux-skia
  • Python 3.11+

Установка

pip install ssui

Пример

import ssui

def main():
    win = ssui.W("Привет, SSUI", 640, 480, thm="drk")

    with win.bx(pd=20.0, gp=12.0):
        win.lb("Привет, мир")
        win.bt("Кнопка", clk=lambda: print("клик"))

    win.go()

if __name__ == "__main__":
    main()

Документация

Полный список виджетов, параметров и статус разработки — DESC.md. Примеры — в каталоге python/examples.

Лицензия

MIT © 2026 Sergievskiy Sergey. Полный текст — LICENSE.

Metadata

Release files for ssui 1.16.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ssui 1.16.0
File Size Uploaded Provenance Actions
ssui-1.16.0.tar.gz 287.1 kB Without provenance Details for ssui-1.16.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ssui 1.16.0
File Interpreter ABI Platform Actions
ssui-1.16.0-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for ssui-1.16.0-cp311-abi3-win_amd64.whl

Total release size: 890.2 kB

Release files / ssui-1.16.0.tar.gz

Download URL ssui-1.16.0.tar.gz
Size 287.1 kB
Tags Source
SHA-256 checksum
How to use checksums
20dd27772eb0bfa8301565636cd9c3ff6d4357589a8fdf1a84d5e96f0160a17e
BLAKE2b-256 checksum
How to use checksums
c2efdec52a7b5a6b9c8c767fcdf326faa620b4592706811b7dfd0838e1e70661
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.14.1

Release files / ssui-1.16.0-cp311-abi3-win_amd64.whl

Download URL ssui-1.16.0-cp311-abi3-win_amd64.whl
Size 603.0 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
3e143d160cec1693861f4bb75a76272c7f0349660a2b0666c1ee5d947055bc7c
BLAKE2b-256 checksum
How to use checksums
535d5699c86c120bf12bc090bd853b3c51e49806540a8e4d04dc26f182cbce23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.14.1

Security for ssui 1.16.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page