Giter VIP home page Giter VIP logo

qgui's Introduction

QGUI

Downloads GitHub forks GitHub Repo stars GitHub
QGUI - 低于100k的超轻量桌面图形化框架,可通过几行代码、使用模板来快捷制作出属于你的图形化界面

项目无限期停更

> 因工作原因、个人健康状态,故无法进行更新。
换工作了,QPT的Bug修完就更!

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工具

qgui's People

Contributors

gt-zhangacer avatar freddd13 avatar livingbody avatar ap-kai avatar guohuan78 avatar

Stargazers

CaoWangrenbo avatar  avatar  avatar Ethan Yao avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar cc avatar ckc avatar zl z avatar shen avatar  avatar 霖念 avatar  avatar  avatar  avatar Jeek Zhang avatar  avatar  avatar 二锅头不上头 avatar Yaakov avatar Viens avatar AsuZSH avatar  avatar Chen Junchao avatar  avatar 周一 avatar dragon avatar 0ne plus one avatar  avatar resunoon avatar jiangxinAlgorithm avatar 小熊宝宝 avatar  avatar TonyHo avatar  avatar landv avatar  avatar 杜俊 avatar  avatar Ellu avatar Jason Zhang avatar  avatar Zahi avatar  avatar  avatar  avatar  avatar 金磊 avatar  avatar Angie avatar 诸葛蛋 avatar LiKun avatar  avatar  avatar  avatar qianmianyao avatar cyberovid avatar Adieu avatar Reyn avatar qitiandasheng avatar qiaohaoforever avatar Suzy.Misaka avatar Jeffrey Hu avatar Kangvcar avatar  avatar Skywalker Wang avatar  avatar baotherst avatar ~Cc avatar Ke Xue avatar maoxh avatar JCXY avatar  avatar  avatar  avatar Rikoo avatar 追马 avatar Ruble avatar sheauren avatar  avatar  avatar fomalhaut avatar 凛ドン avatar Lei Zhao avatar  avatar  avatar lele avatar 爱可可-爱生活 avatar  avatar lixin avatar  avatar  avatar  avatar  avatar ZhangCY avatar

Watchers

Kevin Li avatar  avatar

qgui's Issues

【bug】使用pyinstaller打包后再执行报错

[Errno 2] No such file or directory: 'xxxxx\ttkbootstrap\themes.json'
[15164] Failed to execute script 'gui' due to unhandled exception!

Traceback (most recent call last):
File "gui.py", line 484, in
File "qgui\factory.py", line 50, in init
File "ttkbootstrap_init_.py", line 80, in init
File "ttkbootstrap_init_.py", line 100, in _load_themes
File "importlib\resources.py", line 169, in read_text
File "importlib\resources.py", line 125, in open_text
File "PyInstaller\loader\pyimod02_importers.py", line 539, in open_resource
File "pathlib.py", line 1208, in open
File "pathlib.py", line 1063, in _opener

TypeError: __new__() got an unexpected keyword argument 'themes_file'

Traceback (most recent call last):
File "e:\music_tools\sep_gui\gui.py", line 12, in
main_gui = CreateQGUI(title="一个新应用")
File "C:\software\miniconda3\envs\music\lib\site-packages\qgui-0.5-py3.7.egg\qgui\factory.py", line 52, in init
self.root.style = Style(**QStyle.default)
TypeError: new() got an unexpected keyword argument 'themes_file'

作者大大可以给tab页面加个滚动条嘛

我想在下图这里添加多个分P(大概50个这样的),但是这个界面太小了,装不下,就想加个滚动条,这样他就可以滚动到下面了呢

初学GUI,还请作者别嫌弃

image

跑readme的demo,提示未获取默认主题

如题:跑readme的demo,提示未获取默认主题

`C:\Users\livingbody\miniconda3\envs\p2\python.exe C:/Users/livingbody/PycharmProjects/qguitest/main.py
Traceback (most recent call last):
File "C:/Users/livingbody/PycharmProjects/qguitest/main.py", line 20, in
main_gui = CreateQGUI(title="一个新应用")
File "f:\qgui\qgui\factory.py", line 52, in init
self.root.style = Style(**QStyle.default)
File "C:\Users\livingbody\miniconda3\envs\p2\lib\site-packages\ttkbootstrap_init_.py", line 81, in init
self.load_themes(themes_file)
File "C:\Users\livingbody\miniconda3\envs\p2\lib\site-packages\ttkbootstrap_init
.py", line 119, in _load_themes
themetype=settings['type'],
TypeError: list indices must be integers or slices, not str

Process finished with exit code 1
`

希望增加更多组件,谢谢!

如是,希望增加更多组件,如:listview、tableview、groupbox等等,谢谢!
另外能否去掉标题栏后可以自定义标题栏?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.