资源简介
pyqt、echarts示例源码。..................................................
代码片段和文件信息
# -*- coding: utf-8 -*-
# @Time : 2019/1/28 14:23
# @Author : llc
# @File : test_js.py
from PyQt5.QtCore import QUrl Qt
from PyQt5.QtWebEngineWidgets import QWebEngineView
from PyQt5.QtWidgets import QDialog QApplication QHBoxLayout QWidget QGridLayout QLabel QSpinBox \
QSpacerItem QSizePolicy QComboBox
from random import randint
from pyecharts import Bar Pie Line Overlap
from pyecharts_javascripthon.api import TRANSLATOR
title_TEXT = “我的第一个图表“
title_SUBTEXT = “这里是副标题“
ATTR = [“衬衫“ “羊毛衫“ “雪纺衫“ “裤子“ “高跟鞋“ “袜子“]
class Form(QDialog):
def __init__(self):
super(Form self).__init__()
self.view = None
self.echarts = False
self.initUi()
self.load_url()
def initUi(self):
self.hl = QHBoxLayout(self)
self.widget = QWidget()
self.gl = QGridLayout(self.widget)
# ATTR1
label1 = QLabel(ATTR[0] + ‘:‘)
self.gl.addWidget(label1 1 - 1 0 1 1)
self.spinbox1 = QSpinBox()
self.spinbox1.setSingleStep(100)
self.spinbox1.setobjectName(‘spinbox‘)
self.spinbox1.valueChanged.connect(self.set_options)
self.spinbox1.setMaximum(1000)
self.spinbox1.setValue(randint(0 1000))
self.gl.addWidget(self.spinbox1 1 - 1 1 1 1)
# ATTR2
label2 = QLabel(ATTR[1] + ‘:‘)
self.gl.addWidget(label2 2 - 1 0 1 1)
self.spinbox2 = QSpinBox()
self.spinbox2.setSingleStep(100)
self.spinbox2.setobjectName(‘spinbox‘)
self.spinbox2.valueChanged.connect(self.set_options)
self.spinbox2.setMaximum(1000)
self.spinbox2.setValue(randint(0 1000))
self.gl.addWidget(self.spinbox2 2 - 1 1 1 1)
# ATTR3
label3 = QLabel(ATTR[2] + ‘:‘)
self.gl.addWidget(label3 3 - 1 0 1 1)
self.spinbox3 = QSpinBox()
self.spinbox3.setSingleStep(100)
self.spinbox3.setobjectName(‘spinbox‘)
self.spinbox3.valueChanged.connect(self.set_options)
self.spinbox3.setMaximum(1000)
self.spinbox3.setValue(randint(0 1000))
self.gl.addWidget(self.spinbox3 3 - 1 1 1 1)
# ATTR4
label4 = QLabel(ATTR[3] + ‘:‘)
self.gl.addWidget(label4 4 - 1 0 1 1)
self.spinbox4 = QSpinBox()
self.spinbox4.setSingleStep(100)
self.spinbox4.setobjectName(‘spinbox‘)
self.spinbox4.valueChanged.connect(self.set_options)
self.spinbox4.setMaximum(1000)
self.spinbox4.setValue(randint(0 1000))
self.gl.addWidget(self.spinbox4 4 - 1 1 1 1)
# ATTR5
label5 = QLabel(ATTR[4] + ‘:‘)
self.gl.addWidget(label5 5 - 1 0 1 1)
self.spinbox5 = QSpinBox()
self.spinbox5.setSingleStep(100)
self.spinbox5.setobjectName(‘spinbox‘)
self.spinbox5.valueChanged.connect(self.set_options)
self.spinbox5.setMaximu
- 上一篇:CNN卷积神经网络python代码
- 下一篇:Django入门新闻管理系统
相关资源
- python+pyqt5+百度AI+车牌识别.rar
- Python3.x+Pyqt5实现界面编程浏览网页
- Python-用pyqt5和parametrics实现很酷的动画
- PyQt5 Python 桌面应用程序源码.zip
- python pyqt5 计时器源代码
- pyqt5_python_Gui入门教程.docx
- 利用摄像头拍照并保存照片程序pyth
- QT5 Python GUI Programming Cookbook - 2018
- Python3.4 PyQt5 32位安装版PyQt5-5.5.1-gpl-
- PyQt5 5.3.2 gpl Py3.4 Qt5.3.1 x32.exe
- PyQt5-5.12-5.12.1_a-cp35.cp36.cp37.cp38-none-w
- Serial assistant.rar
- PyQt5快速开发与实战pdf+源码.zip
- 创建画板,手写体实时在线识别
- PyQt5_Tools-5.7.dev1-py3-none-any.whl
- PyQt5快速开发与实战.zip
- PyQt5-5.4-gpl-Py3.4-Qt5.4.0-x64
- Python + PyQt5 + MySQL模拟QQ的聊天与娱乐
- 创建画板,实时在线手写体识别
- PyQt5-5.5.1-gpl-Py3.4-Qt5.5.1-x32
- pyqt5实现自动获取IP软件
- python-vlc二次封装,可用于pyqt
- tesseract V2.0()
- python聊天室---pyqt5+socket+Thread聊天室
- Pyqt5 按钮事件绘制图形
-
PyQ5 Mtaplotlib Datafr
ame画一条随鼠标移 - python实时读取串口数据并自动保存至
- pyqt5做一个一个时钟demo(python3)
-
pyQt5_wavepla
yer python计算声音分贝 语 - 实现小学三年级口算题生成器
评论
共有 条评论