home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / lib / hplip / ui / waitform_base.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2006-08-31  |  2.6 KB  |  58 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. import sys
  5. from qt import *
  6.  
  7. class WaitForm_base(QDialog):
  8.     
  9.     def __init__(self, parent = None, name = None, modal = 0, fl = 0):
  10.         QDialog.__init__(self, parent, name, modal, fl)
  11.         if not name:
  12.             self.setName('WaitForm_base')
  13.         
  14.         WaitForm_baseLayout = QGridLayout(self, 1, 1, 11, 6, 'WaitForm_baseLayout')
  15.         layout2 = QVBoxLayout(None, 0, 6, 'layout2')
  16.         self.textLabel3 = QLabel(self, 'textLabel3')
  17.         layout2.addWidget(self.textLabel3)
  18.         self.ProgressBar = QProgressBar(self, 'ProgressBar')
  19.         layout2.addWidget(self.ProgressBar)
  20.         WaitForm_baseLayout.addMultiCellLayout(layout2, 0, 0, 0, 2)
  21.         spacer10 = QSpacerItem(20, 30, QSizePolicy.Minimum, QSizePolicy.Expanding)
  22.         WaitForm_baseLayout.addItem(spacer10, 1, 1)
  23.         self.cancelPushButton = QPushButton(self, 'cancelPushButton')
  24.         self.cancelPushButton.setEnabled(0)
  25.         WaitForm_baseLayout.addWidget(self.cancelPushButton, 2, 1)
  26.         spacer2 = QSpacerItem(121, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
  27.         WaitForm_baseLayout.addItem(spacer2, 2, 2)
  28.         spacer3 = QSpacerItem(131, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
  29.         WaitForm_baseLayout.addItem(spacer3, 2, 0)
  30.         self.languageChange()
  31.         self.resize(QSize(424, 115).expandedTo(self.minimumSizeHint()))
  32.         self.clearWState(Qt.WState_Polished)
  33.         self.connect(self.cancelPushButton, SIGNAL('clicked()'), self.cancelPushButton_clicked)
  34.  
  35.     
  36.     def languageChange(self):
  37.         self.setCaption(self._WaitForm_base__tr('HP Device Manager - Waiting'))
  38.         self.textLabel3.setText(self._WaitForm_base__tr('<b>Waiting for procedure to finish...</b>'))
  39.         self.cancelPushButton.setText(self._WaitForm_base__tr('Cancel'))
  40.  
  41.     
  42.     def cancelPushButton_clicked(self):
  43.         print 'WaitForm_base.cancelPushButton_clicked(): Not implemented yet'
  44.  
  45.     
  46.     def __tr(self, s, c = None):
  47.         return qApp.translate('WaitForm_base', s, c)
  48.  
  49.  
  50. if __name__ == '__main__':
  51.     a = QApplication(sys.argv)
  52.     QObject.connect(a, SIGNAL('lastWindowClosed()'), a, SLOT('quit()'))
  53.     w = WaitForm_base()
  54.     a.setMainWidget(w)
  55.     w.show()
  56.     a.exec_loop()
  57.  
  58.