QGUI
QGUI - 低于100k的超轻量桌面图形化框架,可通过几行代码、使用模板来快捷制作出属于你的图形化界面
由于精力有限,若该项目Star数量超过100,则会优先考虑更新GUI,目前更新暂时以基座QPT为主
EAP - Easy access program
当前版本为概念版本,如有需求或建议可在issue中提出。
相关案例
| 项目名 | 项目描述 | GUI源码 |
|---|---|---|
| 完整案例 | QGUI的全部基础组件组成的案例 | GUI源码 |
| 油画带师 | 基于飞桨PaddlePaddle的风格迁移工具,可将图片、视频转化为油画风格,支持GPU转换 | GUI源码 |
| QWebsite | 为GitHub浏览与Clone提供加速能力,且非科学上网 | GUI源码 |
| 人像扣图 | 基于PaddleHub的人像扣图小工具 | GUI源码 |
| 音乐分离 | 基于music_source_separation的人声伴奏分离GUI | GUI源码 |
快速上手
安装QGUI
-
通用方式
python -m pip install qgui -
国内推荐
python -m pip install qgui -i https://mirrors.bfsu.edu.cn/pypi/web/simple -
运行Demo/安装测试
python -m qgui
代码示例/模板
简单示例
from qgui import CreateQGUI
from qgui.banner_tools import BaseBarTool, GitHub
from qgui.notebook_tools import ChooseFileTextButton, RunButton
def click(args):
print("你点到我啦~")
print("输入框文字为:", args["文件选择"].get())
# 创建主界面
main_gui = CreateQGUI(title="一个新应用")
# 在界面最上方添加一个按钮,链接到GitHub主页
main_gui.add_banner_tool(GitHub("https://github.com/QPT-Family/QGUI"))
# 要不试试自定义Banner按钮?
main_gui.add_banner_tool(BaseBarTool(click, name="一个新组件"))
# 在主界面部分添加一个文件选择工具吧~
main_gui.add_notebook_tool(ChooseFileTextButton(name="文件选择"))
# 要不要再添加一个运行按钮?,绑定刚刚创建的函数吧~
main_gui.add_notebook_tool(RunButton(click))
# 简单加个简介
main_gui.set_navigation_about(author="GT",
version="0.0.1",
github_url="https://github.com/QPT-Family/QGUI",
other_info=["欢迎加入QPT!"])
# 跑起来~
main_gui.run()
组件文档
目前组件还在逐步完善,随后就提供目录啦,可以先康一下完整案例
进阶教程和完整组件文档暂时还没有,先委屈一下看看源码吧~
上方Banner工具
左侧Navigation工具:main_gui.set_navigation_about() and main_gui.set_navigation_info()
中央Notebook工具
Metadata
Release files for QGUI 0.6.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| QGUI-0.6.3.tar.gz | 29.9 kB | Without provenance | Details for QGUI-0.6.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| QGUI-0.6.3-py3-none-any.whl | Python 3 | none | any | Details for QGUI-0.6.3-py3-none-any.whl |
Total release size: 64.2 kB
Release files / QGUI-0.6.3.tar.gz
| Download URL | QGUI-0.6.3.tar.gz |
|---|---|
| Size | 29.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7bf26101242b99d16ed0d7082f59df26fd7e5a54b23099f0c7dfb54893934a8d
|
|
BLAKE2b-256 checksum How to use checksums |
1b80ca92e47bae57888e500bc58e7c182b9d12a8a8db2a3bdd0aa4c92aef3878
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / QGUI-0.6.3-py3-none-any.whl
| Download URL | QGUI-0.6.3-py3-none-any.whl |
|---|---|
| Size | 34.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cfdf217b901b04c39c09ad524ddcf2fb70991e3203f588f160668b2e0af61d77
|
|
BLAKE2b-256 checksum How to use checksums |
cbf6a1b6332888ef217dd2c3b5b93a39de6336336dd45eb85ced048913ffb88f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for QGUI 0.6.3
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.