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

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. import sys
  5. from qt import *
  6.  
  7. class LoadPaperForm_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('LoadPaperForm_base')
  13.         
  14.         LoadPaperForm_baseLayout = QGridLayout(self, 1, 1, 11, 6, 'LoadPaperForm_baseLayout')
  15.         self.ContinueButton = QPushButton(self, 'ContinueButton')
  16.         LoadPaperForm_baseLayout.addWidget(self.ContinueButton, 1, 3)
  17.         self.CancelButton = QPushButton(self, 'CancelButton')
  18.         LoadPaperForm_baseLayout.addWidget(self.CancelButton, 1, 2)
  19.         spacer7 = QSpacerItem(391, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
  20.         LoadPaperForm_baseLayout.addMultiCell(spacer7, 1, 1, 0, 1)
  21.         self.textLabel7 = QLabel(self, 'textLabel7')
  22.         self.textLabel7.setAlignment(QLabel.WordBreak | QLabel.AlignVCenter)
  23.         LoadPaperForm_baseLayout.addMultiCellWidget(self.textLabel7, 0, 0, 1, 3)
  24.         self.Icon = QLabel(self, 'Icon')
  25.         self.Icon.setSizePolicy(QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed, 0, 0, self.Icon.sizePolicy().hasHeightForWidth()))
  26.         self.Icon.setScaledContents(1)
  27.         LoadPaperForm_baseLayout.addWidget(self.Icon, 0, 0)
  28.         self.languageChange()
  29.         self.resize(QSize(621, 178).expandedTo(self.minimumSizeHint()))
  30.         self.clearWState(Qt.WState_Polished)
  31.         self.connect(self.CancelButton, SIGNAL('clicked()'), self.reject)
  32.         self.connect(self.ContinueButton, SIGNAL('clicked()'), self.accept)
  33.  
  34.     
  35.     def languageChange(self):
  36.         self.setCaption(self._LoadPaperForm_base__tr('HP Device Manager - Load Plain Paper'))
  37.         self.ContinueButton.setText(self._LoadPaperForm_base__tr('Continue'))
  38.         self.CancelButton.setText(self._LoadPaperForm_base__tr('Cancel'))
  39.         self.textLabel7.setText(self._LoadPaperForm_base__tr('A page will be printed. Please load <b>plain paper</b> in the printer and then press continue.'))
  40.  
  41.     
  42.     def __tr(self, s, c = None):
  43.         return qApp.translate('LoadPaperForm_base', s, c)
  44.  
  45.  
  46. if __name__ == '__main__':
  47.     a = QApplication(sys.argv)
  48.     QObject.connect(a, SIGNAL('lastWindowClosed()'), a, SLOT('quit()'))
  49.     w = LoadPaperForm_base()
  50.     a.setMainWidget(w)
  51.     w.show()
  52.     a.exec_loop()
  53.  
  54.