V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
wellhome
V2EX  ›  Python

有个以想法关于 GUI Python 程序,请教大家

  •  
  •   wellhome · 2017-05-01 11:29:15 +08:00 · 2808 次点击
    这是一个创建于 2549 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我打算这样写一个 GUI python, 是否可行

    1. 用 gunicorn + flask+sqlite 写一个后端 , binding to 8888

    2. 用 exe 启动 gunion, 以及 python webbrowser -t "http://localhost:8888"

    3. 或者用 PyQt + webkit 打开 "http://localhost:8888"

    然后把程序打包分发。

    是不是这样我就做了一个 GUI 的程序了?
    6 条回复    2019-05-09 20:27:41 +08:00
    lishunan246
        1
    lishunan246  
       2017-05-01 11:55:03 +08:00 via Android   ❤️ 1
    我感觉你重新发明了 Electron
    SuperMild
        2
    SuperMild  
       2017-05-01 11:59:13 +08:00
    网页本身就是 GUI,只不过不是原生,功能和效率受到限制。网页界面你还是要用 HTML5 和 JS 来写,结果还不如直接上 electron。
    PythonAnswer
        3
    PythonAnswer  
       2017-05-01 12:06:31 +08:00
    自己用的话 runserver 就够了 并不需要 gunicorn,并且 gunicorn 不能跑在 win 上。
    你可以用 gevent 写一个 runserver,这样 req 会提高很多。
    Cbdy
        4
    Cbdy  
       2017-05-01 14:19:12 +08:00 via Android
    重新发明系列
    MasterMonkey
        5
    MasterMonkey  
       2017-05-01 19:19:48 +08:00 via iPhone
    PostgreSQL 的管理前端 pgadmin4 就是这样做的,但是如果你需要原生扩展,还是 electron 比较好!
    wellhome
        6
    wellhome  
    OP
       2019-05-09 20:27:41 +08:00 via iPhone
    Electron 可以用在 python 上吗
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3294 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 12:57 · PVG 20:57 · LAX 05:57 · JFK 08:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.