# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'StatusBarForm.ui' # # Created: Thu Feb 5 01:42:05 2004 # by: The PyQt User Interface Compiler (pyuic) 3.8.1 # # WARNING! All changes made in this file will be lost! import sys from qt import * class StatusBarForm(QDialog): def __init__(self,parent = None,name = None,modal = 0,fl = 0): QDialog.__init__(self,parent,name,modal,fl) if not name: self.setName("StatusBarForm") self.statusProgressBar = QProgressBar(self,"statusProgressBar") self.statusProgressBar.setGeometry(QRect(20,40,400,30)) self.abortButton = QPushButton(self,"abortButton") self.abortButton.setGeometry(QRect(160,80,120,32)) self.statusLabel = QLabel(self,"statusLabel") self.statusLabel.setGeometry(QRect(20,10,400,20)) self.languageChange() self.resize(QSize(441,120).expandedTo(self.minimumSizeHint())) self.clearWState(Qt.WState_Polished) def languageChange(self): self.setCaption(self.__tr("Status")) self.abortButton.setText(self.__tr("Abort")) self.statusLabel.setText(self.__tr("

Status Message

")) def __tr(self,s,c = None): return qApp.translate("StatusBarForm",s,c) if __name__ == "__main__": a = QApplication(sys.argv) QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()")) w = StatusBarForm() a.setMainWidget(w) w.show() a.exec_loop()