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

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. import sys
  5. from qt import *
  6.  
  7. class CleaningForm_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('CleaningForm_base')
  13.         
  14.         self.setSizeGripEnabled(1)
  15.         CleaningForm_baseLayout = QGridLayout(self, 1, 1, 6, 6, 'CleaningForm_baseLayout')
  16.         self.Icon = QLabel(self, 'Icon')
  17.         self.Icon.setSizePolicy(QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed, 0, 0, self.Icon.sizePolicy().hasHeightForWidth()))
  18.         self.Icon.setMinimumSize(QSize(71, 65))
  19.         self.Icon.setMaximumSize(QSize(71, 65))
  20.         self.Icon.setScaledContents(1)
  21.         CleaningForm_baseLayout.addWidget(self.Icon, 1, 0)
  22.         self.Finish = QPushButton(self, 'Finish')
  23.         CleaningForm_baseLayout.addWidget(self.Finish, 3, 3)
  24.         spacer2 = QSpacerItem(211, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
  25.         CleaningForm_baseLayout.addMultiCell(spacer2, 3, 3, 0, 1)
  26.         self.Continue = QPushButton(self, 'Continue')
  27.         CleaningForm_baseLayout.addWidget(self.Continue, 3, 2)
  28.         self.CleaningText = QLabel(self, 'CleaningText')
  29.         CleaningForm_baseLayout.addMultiCellWidget(self.CleaningText, 1, 1, 1, 3)
  30.         spacer5 = QSpacerItem(20, 20, QSizePolicy.Minimum, QSizePolicy.Expanding)
  31.         CleaningForm_baseLayout.addItem(spacer5, 2, 2)
  32.         self.CleaningTitle = QLabel(self, 'CleaningTitle')
  33.         CleaningForm_baseLayout.addMultiCellWidget(self.CleaningTitle, 0, 0, 1, 3)
  34.         self.languageChange()
  35.         self.resize(QSize(562, 186).expandedTo(self.minimumSizeHint()))
  36.         self.clearWState(Qt.WState_Polished)
  37.         self.connect(self.Continue, SIGNAL('clicked()'), self.reject)
  38.         self.connect(self.Finish, SIGNAL('clicked()'), self.accept)
  39.  
  40.     
  41.     def languageChange(self):
  42.         self.setCaption(self._CleaningForm_base__tr('HP Device Manager - Cleaning'))
  43.         self.Finish.setText(self._CleaningForm_base__tr('Finish'))
  44.         self.Continue.setText(self._CleaningForm_base__tr('Cleaning Level %s'))
  45.         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.'))
  46.         self.CleaningTitle.setText(self._CleaningForm_base__tr('<b>Cleaning Level %s Performed</b>'))
  47.  
  48.     
  49.     def __tr(self, s, c = None):
  50.         return qApp.translate('CleaningForm_base', s, c)
  51.  
  52.  
  53. if __name__ == '__main__':
  54.     a = QApplication(sys.argv)
  55.     QObject.connect(a, SIGNAL('lastWindowClosed()'), a, SLOT('quit()'))
  56.     w = CleaningForm_base()
  57.     a.setMainWidget(w)
  58.     w.show()
  59.     a.exec_loop()
  60.  
  61.