Coder Social home page Coder Social logo

lgtm-migrator / qgui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qpt-family/qgui

0.0 0.0 0.0 6.87 MB

QGUI - 0.1MB超轻量Python GUI框架,用模板来快捷制作深度学习模型推理界面

Home Page: https://qgui.readthedocs.io

License: MIT License

Python 98.19% Makefile 0.83% Batchfile 0.99%

qgui's Introduction

QGUI

Downloads GitHub forks GitHub Repo stars GitHub
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工具

qgui's People

Contributors

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

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.