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
chaleaoch
V2EX  ›  Python

我想将一个 web 应用做桌面应用,类似于 pgadmin4

  •  
  •   chaleaoch · 2017-08-11 12:51:20 +08:00 · 2340 次点击
    这是一个创建于 2452 天前的主题,其中的信息可能已经有所发展或是发生改变。
    其实是想做一个桌面应用程序,但是不会写界面。所以界面想用 html/css/jquery 那一套来做,但是怎么实现呢?

    我知道肯定是由这样的方案的。譬如 pgadmin4 的 windows 版本。
    就是不知道它是如何实现的。。。
    7 条回复    2017-08-12 19:48:08 +08:00
    chaleaoch
        1
    chaleaoch  
    OP
       2017-08-11 12:54:29 +08:00
    Although developed using web technologies, pgAdmin 4 can be deployed either on
    a web server using a browser, or standalone on a workstation. The runtime/
    subdirectory contains a QT based runtime application intended to allow this -
    it is essentially a browser and Python interpreter in one package which is
    capable of hosting the Python application and presenting it to the user as a
    desktop application.

    自问自答。。。。
    最终还是用的 QT 内嵌一个浏览器。。。
    clijiac
        2
    clijiac  
       2017-08-11 12:55:44 +08:00
    electron
    jarlyyn
        3
    jarlyyn  
       2017-08-11 12:55:46 +08:00
    chaleaoch
        4
    chaleaoch  
    OP
       2017-08-11 13:14:19 +08:00
    @clijiac
    @jarlyyn
    谢谢。
    leyucode
        5
    leyucode  
       2017-08-11 22:57:18 +08:00 via Android
    flask
    DualNibs
        6
    DualNibs  
       2017-08-12 02:10:28 +08:00
    也推荐 electron,撸起来特别简单,扩展走 node.js 也很方便,可用性足够高了。

    我六月才独自撸出了一整套前后的进销存+pos,pos client 的部分就用的这个,走 RS232 接秤子(进货)跟打印。还不够的自己从 node.js 下手也不是什么大事。

    顺带抱怨一下 pgadmin4 真特么比 3 难用得多,而且 ui 实在是…
    1qaz2wsx
        7
    1qaz2wsx  
       2017-08-12 19:48:08 +08:00
    nwjs 也是可以得 https://www.v2ex.com/t/381573#reply0
    electron 也行,只需要会前端就能搞了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2598 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 15:44 · PVG 23:44 · LAX 08:44 · JFK 11:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.