Yet another GUI lib, looks and performs better than tkinter.
Project description
Suzaku 朱雀
Advanced UI module based on skia-python, pyopengl and glfw.
基于skia-python、pyopengl与glfw高级界面库。
Still under developing... / 正在抓紧制作中...
versions under dev are provided for evulation purposes.
您可以下载正在开发的版本来进行评估。
Basic Example / 简单示例
python3 -m suzaku
0.1.1
Layout / 布局
Each component can use layout methods to arrange itself using, for instance, widget.box(), which is similar to how things work in tkinter. Comparing to other solutions used in Qt or other UI frameworks, we believe this approach is more simple 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的简易版,就是没有anchor、expand、fill属性,只有side、expand、padx、pady属性。
(未来会做ipadx、ipady属性)
每个容器只能选择一种布局方向,例如,不能同时使用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 / 基础原理
Several (only 2 now actually) modules are used to provide several (same, only 2 now) window base, to enable us showing and modifying the window. After that, skia-python is used as a drawing backend.
使用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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file suzaku-0.1.8.tar.gz.
File metadata
- Download URL: suzaku-0.1.8.tar.gz
- Upload date:
- Size: 405.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.0 CPython/3.13.5 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b8bacfed0eaaf774ce45f85a1266a60744a0392dc0d460381844d77979a2491
|
|
| MD5 |
4c43ac07eeaf4f45328e6b8da7564253
|
|
| BLAKE2b-256 |
df6b02232f034631860668e15044ce29890301fedb6d752f6cb37c071102198a
|
File details
Details for the file suzaku-0.1.8-py3-none-any.whl.
File metadata
- Download URL: suzaku-0.1.8-py3-none-any.whl
- Upload date:
- Size: 430.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.0 CPython/3.13.5 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b26f5e0221ea889729b595ee39c7c4ebd41abdf96c56f49ebaeabb30e8a22b02
|
|
| MD5 |
b5f6e4ebaaa08132861ecc7f37ec4b30
|
|
| BLAKE2b-256 |
03e854da97d1d765ba05e339f2c9714ba142a1052ca980aec73d351d7e689d9a
|