在PYQT5中不断的显示新的信息
需求: 需要在statusbar 上不断的显示新的测试数据
现在在测试例子中, 数据由numpy生成。
总结如下:
#coding:utf-8
from PyQt5.QtWidgets import QMainWindow, QProgressBar, QApplication, QLabel,QPushButton
import sys
import numpy as np
class SampleBar(QMainWindow):
"""Main Application"""
def __init__(self, parent=None):
super(SampleBar, self).__init__(parent)
self.initUI()
def
PyQT5更新StatusBar实时显示numpy数据

该博客介绍了如何在PYQT5应用中使用StatusBar实时显示由numpy生成的不断更新的测试数据,通过点击按钮触发数值更新。
最低0.47元/天 解锁文章
1241

被折叠的 条评论
为什么被折叠?



