home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.4)
-
- import sys
- from qt import *
-
- class WaitForm_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('WaitForm_base')
-
- WaitForm_baseLayout = QGridLayout(self, 1, 1, 11, 6, 'WaitForm_baseLayout')
- layout2 = QVBoxLayout(None, 0, 6, 'layout2')
- self.textLabel3 = QLabel(self, 'textLabel3')
- layout2.addWidget(self.textLabel3)
- self.ProgressBar = QProgressBar(self, 'ProgressBar')
- layout2.addWidget(self.ProgressBar)
- WaitForm_baseLayout.addMultiCellLayout(layout2, 0, 0, 0, 2)
- spacer10 = QSpacerItem(20, 30, QSizePolicy.Minimum, QSizePolicy.Expanding)
- WaitForm_baseLayout.addItem(spacer10, 1, 1)
- self.cancelPushButton = QPushButton(self, 'cancelPushButton')
- self.cancelPushButton.setEnabled(0)
- WaitForm_baseLayout.addWidget(self.cancelPushButton, 2, 1)
- spacer2 = QSpacerItem(121, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
- WaitForm_baseLayout.addItem(spacer2, 2, 2)
- spacer3 = QSpacerItem(131, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
- WaitForm_baseLayout.addItem(spacer3, 2, 0)
- self.languageChange()
- self.resize(QSize(424, 115).expandedTo(self.minimumSizeHint()))
- self.clearWState(Qt.WState_Polished)
- self.connect(self.cancelPushButton, SIGNAL('clicked()'), self.cancelPushButton_clicked)
-
-
- def languageChange(self):
- self.setCaption(self._WaitForm_base__tr('HP Device Manager - Waiting'))
- self.textLabel3.setText(self._WaitForm_base__tr('<b>Waiting for procedure to finish...</b>'))
- self.cancelPushButton.setText(self._WaitForm_base__tr('Cancel'))
-
-
- def cancelPushButton_clicked(self):
- print 'WaitForm_base.cancelPushButton_clicked(): Not implemented yet'
-
-
- def __tr(self, s, c = None):
- return qApp.translate('WaitForm_base', s, c)
-
-
- if __name__ == '__main__':
- a = QApplication(sys.argv)
- QObject.connect(a, SIGNAL('lastWindowClosed()'), a, SLOT('quit()'))
- w = WaitForm_base()
- a.setMainWidget(w)
- w.show()
- a.exec_loop()
-
-