def __init__ (self, title, mmax=100) :
super (FamilyProgress, self).__init__ ()
self.setWindowTitle (title)
self.setFixedHeight (48)
self.pbar = QtGui.QProgressBar ()
self.pbar.setRange (0, mmax - 1)
self.btn = QtGui.QPushButton ("Starting", self)
pbarvbox = QtGui.QVBoxLayout()
pbarvbox.addStretch (False)
pbarvbox.addWidget (self.pbar)
buttonvbox = QtGui.QVBoxLayout ()
buttonvbox.addStretch (True)
buttonvbox.addWidget (self.btn)
hbox = QtGui.QHBoxLayout ()
hbox.addLayout(pbarvbox, stretch=False)
hbox.addLayout(buttonvbox)
self.setLayout (hbox)
self.pbar.setStyleSheet(START_STYLE)
#self.show()
评论列表
文章目录