home *** CD-ROM | disk | FTP | other *** search
Wrap
# Source Generated with Decompyle++ # File: in.pyc (Python 2.4) import sys from qt import * class CleaningForm_base(QDialog): def __init__(self, parent = None, name = None, modal = 0, fl = 0): QDialog.__init__(self, parent, name, modal, fl) if not name: self.setName('CleaningForm_base') self.setSizeGripEnabled(1) CleaningForm_baseLayout = QGridLayout(self, 1, 1, 6, 6, 'CleaningForm_baseLayout') self.Icon = QLabel(self, 'Icon') self.Icon.setSizePolicy(QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed, 0, 0, self.Icon.sizePolicy().hasHeightForWidth())) self.Icon.setMinimumSize(QSize(71, 65)) self.Icon.setMaximumSize(QSize(71, 65)) self.Icon.setScaledContents(1) CleaningForm_baseLayout.addWidget(self.Icon, 1, 0) self.Finish = QPushButton(self, 'Finish') CleaningForm_baseLayout.addWidget(self.Finish, 3, 3) spacer2 = QSpacerItem(211, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) CleaningForm_baseLayout.addMultiCell(spacer2, 3, 3, 0, 1) self.Continue = QPushButton(self, 'Continue') CleaningForm_baseLayout.addWidget(self.Continue, 3, 2) self.CleaningText = QLabel(self, 'CleaningText') CleaningForm_baseLayout.addMultiCellWidget(self.CleaningText, 1, 1, 1, 3) spacer5 = QSpacerItem(20, 20, QSizePolicy.Minimum, QSizePolicy.Expanding) CleaningForm_baseLayout.addItem(spacer5, 2, 2) self.CleaningTitle = QLabel(self, 'CleaningTitle') CleaningForm_baseLayout.addMultiCellWidget(self.CleaningTitle, 0, 0, 1, 3) self.languageChange() self.resize(QSize(562, 186).expandedTo(self.minimumSizeHint())) self.clearWState(Qt.WState_Polished) self.connect(self.Continue, SIGNAL('clicked()'), self.reject) self.connect(self.Finish, SIGNAL('clicked()'), self.accept) def languageChange(self): self.setCaption(self._CleaningForm_base__tr('HP Device Manager - Cleaning')) self.Finish.setText(self._CleaningForm_base__tr('Finish')) self.Continue.setText(self._CleaningForm_base__tr('Cleaning Level %s')) self.CleaningText.setText(self._CleaningForm_base__tr('Please wait while the test page is printed. Check this page to see if the problem was fixed. If the test page looks fine click <b>Finish </b>to quit the cleaning procedure. Otherwise, click <b>Cleaning Level %s</b> to continue with cleaning.')) self.CleaningTitle.setText(self._CleaningForm_base__tr('<b>Cleaning Level %s Performed</b>')) def __tr(self, s, c = None): return qApp.translate('CleaningForm_base', s, c) if __name__ == '__main__': a = QApplication(sys.argv) QObject.connect(a, SIGNAL('lastWindowClosed()'), a, SLOT('quit()')) w = CleaningForm_base() a.setMainWidget(w) w.show() a.exec_loop()