Skip to main content

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

Project description

Suzaku 朱雀

This project is experiencing a reconstruction. For latest usable versions, please see releases. However, always note that the APIs will change frequently in this period without notifying or warning, please only use versions under development for evaluation purposes.

本项目正在经历重构。最新可用版本可以在releases中找到。请务必注意:在此期间API会经常发生变更,恕不另行通知或给出警告。请将这些开发中的版本仅用于评估用途。

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.2a1.png

Minimal Exanple / 最小示例

mini.png

from suzaku import *

root = Sk()
btn = SkButton(window, text="Hello World")
btn.place(10, 10)
root.mainloop()

How it Works / 原理

Basic Pricinples / 基础原理

SkApp manages all SkWindow objects. We may consider each of the visible elements and ocmponents as a SkWidget in SkWindow.

SkApp管理着所有的SkWindow。我们将每一个可视化的元素&组件视为一个个的SkWidget,居于SkWindow中。

A number of properties are owned by SkWidget, telling SkWindow how it should be drawn. SkWidget components are added to the window viaSkWindow.add_draw(), then be drawn by SkWindow.draw().

SkWidget具有一个个属性,告诉SkWindow自己该如何被绘制,用SkWindow.add_draw()将自己的绘制方式加入进去,然后在SkWindow.draw()中被一个个的绘制在画布上。

Layout / 布局

Under construction / 正在开发

Naming / 取名

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

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

Plans / 计划

svg in Canvas module will be used to draw shapes.

我将会使用跨平台的Canvas库,用svg来绘制图形。

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.2.dev1.tar.gz (31.8 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.2.dev1-py3-none-any.whl (42.3 kB view details)

Uploaded Python 3

File details

Details for the file suzaku-0.0.2.dev1.tar.gz.

File metadata

  • Download URL: suzaku-0.0.2.dev1.tar.gz
  • Upload date:
  • Size: 31.8 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.2.dev1.tar.gz
Algorithm Hash digest
SHA256 16995c982193cc0813f1358c0f2cc13f7787a96b633002e724375aad0dac0eb2
MD5 db8aaada9e531f3ccec435a0e6c5597d
BLAKE2b-256 e817d631f802468588941c451b1c3bb002f720e70d223fda321c08a73969c81e

See more details on using hashes here.

File details

Details for the file suzaku-0.0.2.dev1-py3-none-any.whl.

File metadata

  • Download URL: suzaku-0.0.2.dev1-py3-none-any.whl
  • Upload date:
  • Size: 42.3 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.2.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 0392ddffdec727b4b2bf347144aa86d3449c9e48333301079c8b3859f822435c
MD5 53256e7f301313db023ddc685406e021
BLAKE2b-256 2c26ee0475923601c1b0dba625a7c6eb1d3b2b2642dcf422bad495432ebd80cf

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