QProgressDialog 进度对话框,向用户提示当前程序的进度信息,演示当前程序正在进行,向用户提供终止操作的机会。
from PyQt5.Qt import *
class MyWindow(QWidget):
def __init__(self):
super().__init__()
self.setWindowTitle('QProgressDialog')
self.resize(500,500)
self.iniUI()
def iniUI(self):
pd = QProgressDialog(self)
##########################默认情况下 四秒钟之后会自动弹出进度对话框,满值自动关闭
########################## 窗口级别的模态窗口open()弹出
pd.setValue(95)
pd.setMin