import time
from PySide6.QtWidgets import *
from PySide6.QtCore import *
from PySide6.QtGui import *
from page import Ui_Form
class Window(QWidget, Ui_Form):
def __init__(self):
super().__init__()
self.setupUi(self)
def onBtnStartClick(self):
for i in range(101):
self.progressBar.setValue(i)
time.sleep(1)
def onBtnStopClick(self):
pass
def onBtnPauseClick(self):
pass
def onBtnResumeClick(self):
pass
if __name__ == '__main__':
import sys
app = QApplication(sys.argv)
win = Window()
win.show()
sys.exit(app.exec())
承擔(dān)因您的行為而導(dǎo)致的法律責(zé)任,
本站有權(quán)保留或刪除有爭議評論。
參與本評論即表明您已經(jīng)閱讀并接受
上述條款。