Git Product home page Git Product logo

ew's Introduction

程序简介

在集团培训期间实在无聊,用PyQt加上JavaScript实现了国重项目中的前瞻预警软件的前端页面

所需第三方包

PyQt5,pyecharts,pandas

程序运行

命令行:python app_main.py

程序问题

存在绝对路径,环境变化需要修改

程序运行效果

截图20220825164410

页面操作

  1. 最上方的柱子对应电网未来的安全状况,点击柱子,下方页面会根据未来的时刻来刷新
  2. 中间为电网的页面,点击断面左侧的断面预警会刷新,点击线路则右侧的连锁故障链会刷新
  3. 整个页面每5s访问一次数据库,刷新页面
  4. 柱子红色部分越多,代表电网安全状况越差

程序框架

  1. pyecharts生成初始的html图表
  2. PyQt的QWebEngineView加载显示图表
  3. runJavaScript方法将数据传入JS,刷新页面
  4. QWebChannel将JS的返回值传给python

ew's People

Watchers

 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.