electron调用python_使用Python和ElectronJS制作现代GUI应用

python-app-with-electron-gui

A better way to make GUIs for your Python apps

Use HTML, JavaScript and CSS to make highly customized, cross platfrom desktop apps which use native Python backends.

Note: This is for educational purposes only, this may not be efficient or bug-free. Also, this is just a demo on how JS and Python can be used to interact together. This demo is NOT meant to show face detection or object detection.

General Dependenices

Python

NodeJS

electron.js

python-shell

Specific Dependencies

weather module:

requests

beautifulsoup4

object detection module

Flask

tensorflow

keras

Usage

Clone the repo, and then

$ cd electron-app-with-python-gui

$ pip install -r requirements.txt

$ npm install

$ npm start

If you want to use the object detection module, make sure the flask server [object_detection.py] is up and running before starting the GUI.

$ cd engine

$ python object_detection.py

Note:

weather_engine.py uses web-scraping to pull data off the internet, from a particular website. If this site happens to be modified or changed in the future, the code might break. However, this can be fixed by analyzing the new layout of the site and adjusting the python code accordingly.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值