Skip to main content

New and aesthetically pleasing GUI library (新型美观GUI库)

Project description

Suzaku 朱雀

Advanced UI module based on skia-python, pyopengl and glfw.

基于skia-pythonpyopenglglfw高级界面库。

Still under developing... / 正在抓紧制作中...

Evaluate out current achievements by downloading this project while it is still under development.

您可以下载正在开发的版本来进行评估。


Basic Example / 简单示例

python3 -m suzaku

0.0.5

0.0.5-Light.png 0.0.5-Dark.png

0.0.2a1

This is an old version of the design, and it will be re-enabled in the future.

这个是老版本的设计,未来将会将它重新启用

0.0.2a1.png

Layout / 布局

Each component can use layout methods to arrange itself, such as widget.box(), similar to tkinter. I think this approach is more concise and user-friendly.

每个组件都可以使用布局方法来布局自己,例如widget.box(),类似于tkinter,我觉得这样更简洁易用点。

Box

It can be considered a simplified version of tkinter.pack—without anchor, expand, or fill attributes, only side, expand, padx, and pady attributes.
(In the future, ipadx and ipady attributes will be added.) Each container can only choose one layout direction. For example, you cannot use both widget.box(side="left") and widget.box(side="right") simultaneously.

可以被称为tkinter.pack的简易版,就是没有anchorexpandfill属性,只有sideexpandpadxpady属性。 (未来会做ipadxipady属性) 每个容器只能选择一种布局方向,例如,不能同时使用widget.box(side="left")widget.box(side="right")

Vertical layout / 垂直布局

The default layout is vertical.

默认为垂直方向布局。

widget.box()

Horizontal layout / 水平布局

widget.box(side="left")
widget2.box(side="right")

How it Works / 原理

Basic Pricinples / 基础原理

使用glfw作为窗口管理库,使用pyopengl作为后端,使用skia-python作为绘画后端。

Naming / 取名

Suzaku is one of the four mythical beasts in ancient China. Sounds cool isn't it?

suzaku是朱雀的意思,朱雀是中国古代的四大神兽之一。取这名呢感觉很霸气,先占个名先。

Plans / 计划

It may be compatible with multiple frameworks in the future, such as SDL2. 可能后续会兼容多个框架,如SDL2

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

suzaku-0.0.7.tar.gz (354.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

suzaku-0.0.7-py3-none-any.whl (366.8 kB view details)

Uploaded Python 3

File details

Details for the file suzaku-0.0.7.tar.gz.

File metadata

  • Download URL: suzaku-0.0.7.tar.gz
  • Upload date:
  • Size: 354.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Windows/11

File hashes

Hashes for suzaku-0.0.7.tar.gz
Algorithm Hash digest
SHA256 5dc2e0d0eb172299d160e2b2bc090d83c5cb36caf8c46afc2b9ab32f4558cf4f
MD5 3ca714641c5cdcc6e16129bd9484fb7c
BLAKE2b-256 12de679f012f17a9a28e9f9b4de5f355028222aec2d9a3d32865fc4df7d6a14a

See more details on using hashes here.

File details

Details for the file suzaku-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: suzaku-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 366.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Windows/11

File hashes

Hashes for suzaku-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 caf7302ba90ad71246c06b35703e8a1823ed1f7d265c9906ca8338c38e3b3d98
MD5 623d32af88c6d22869bf4c2fbd67f838
BLAKE2b-256 f7227751836c36e63cbc6fbfce5dadfa7f09aeb65777ab7740351bbb9660ad8f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page