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

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. import sys
  5. from qt import *
  6.  
  7. class Align10Form_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('Align10Form_base')
  13.         
  14.         Align10Form_baseLayout = QGridLayout(self, 1, 1, 11, 6, 'Align10Form_baseLayout')
  15.         self.textLabel2 = QLabel(self, 'textLabel2')
  16.         Align10Form_baseLayout.addMultiCellWidget(self.textLabel2, 0, 0, 0, 2)
  17.         layout2 = QGridLayout(None, 1, 1, 0, 6, 'layout2')
  18.         self.comboBoxF = QComboBox(0, self, 'comboBoxF')
  19.         layout2.addWidget(self.comboBoxF, 5, 1)
  20.         self.textLabel1_2 = QLabel(self, 'textLabel1_2')
  21.         layout2.addWidget(self.textLabel1_2, 1, 0)
  22.         self.textLabel1_6 = QLabel(self, 'textLabel1_6')
  23.         layout2.addWidget(self.textLabel1_6, 5, 0)
  24.         self.comboBoxD = QComboBox(0, self, 'comboBoxD')
  25.         layout2.addWidget(self.comboBoxD, 3, 1)
  26.         self.comboBoxE = QComboBox(0, self, 'comboBoxE')
  27.         layout2.addWidget(self.comboBoxE, 4, 1)
  28.         self.textLabel1_3 = QLabel(self, 'textLabel1_3')
  29.         layout2.addWidget(self.textLabel1_3, 2, 0)
  30.         self.textLabel1_4 = QLabel(self, 'textLabel1_4')
  31.         layout2.addWidget(self.textLabel1_4, 3, 0)
  32.         self.comboBoxC = QComboBox(0, self, 'comboBoxC')
  33.         layout2.addWidget(self.comboBoxC, 2, 1)
  34.         self.comboBoxA = QComboBox(0, self, 'comboBoxA')
  35.         layout2.addWidget(self.comboBoxA, 0, 1)
  36.         self.comboBoxH = QComboBox(0, self, 'comboBoxH')
  37.         layout2.addWidget(self.comboBoxH, 7, 1)
  38.         self.textLabel1_7 = QLabel(self, 'textLabel1_7')
  39.         layout2.addWidget(self.textLabel1_7, 6, 0)
  40.         self.textLabel1 = QLabel(self, 'textLabel1')
  41.         layout2.addWidget(self.textLabel1, 0, 0)
  42.         self.textLabel1_5 = QLabel(self, 'textLabel1_5')
  43.         layout2.addWidget(self.textLabel1_5, 4, 0)
  44.         self.textLabel1_8 = QLabel(self, 'textLabel1_8')
  45.         layout2.addWidget(self.textLabel1_8, 7, 0)
  46.         self.comboBoxB = QComboBox(0, self, 'comboBoxB')
  47.         layout2.addWidget(self.comboBoxB, 1, 1)
  48.         self.comboBoxG = QComboBox(0, self, 'comboBoxG')
  49.         layout2.addWidget(self.comboBoxG, 6, 1)
  50.         Align10Form_baseLayout.addMultiCellLayout(layout2, 0, 1, 4, 5)
  51.         spacer2 = QSpacerItem(20, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
  52.         Align10Form_baseLayout.addItem(spacer2, 0, 3)
  53.         spacer3 = QSpacerItem(20, 41, QSizePolicy.Minimum, QSizePolicy.Expanding)
  54.         Align10Form_baseLayout.addItem(spacer3, 2, 5)
  55.         self.pushButton1 = QPushButton(self, 'pushButton1')
  56.         Align10Form_baseLayout.addWidget(self.pushButton1, 3, 5)
  57.         self.pushButton2 = QPushButton(self, 'pushButton2')
  58.         Align10Form_baseLayout.addMultiCellWidget(self.pushButton2, 3, 3, 3, 4)
  59.         spacer1 = QSpacerItem(320, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
  60.         Align10Form_baseLayout.addMultiCell(spacer1, 3, 3, 0, 2)
  61.         spacer5 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
  62.         Align10Form_baseLayout.addItem(spacer5, 1, 0)
  63.         self.Icon = QLabel(self, 'Icon')
  64.         self.Icon.setSizePolicy(QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed, 0, 0, self.Icon.sizePolicy().hasHeightForWidth()))
  65.         self.Icon.setMinimumSize(QSize(192, 93))
  66.         self.Icon.setMaximumSize(QSize(192, 93))
  67.         self.Icon.setScaledContents(1)
  68.         Align10Form_baseLayout.addWidget(self.Icon, 1, 1)
  69.         spacer4 = QSpacerItem(60, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
  70.         Align10Form_baseLayout.addMultiCell(spacer4, 1, 1, 2, 3)
  71.         self.languageChange()
  72.         self.resize(QSize(520, 326).expandedTo(self.minimumSizeHint()))
  73.         self.clearWState(Qt.WState_Polished)
  74.         self.connect(self.pushButton1, SIGNAL('clicked()'), self.accept)
  75.         self.connect(self.pushButton2, SIGNAL('clicked()'), self.reject)
  76.  
  77.     
  78.     def languageChange(self):
  79.         self.setCaption(self._Align10Form_Base__tr('HP Device Manager - Alignment'))
  80.         self.textLabel2.setText(self._Align10Form_Base__tr('Examine the page that was printed. Several rows of boxes, each made up of thin lines, appear on the printed page.<p>\nFor each row, select the label representing the box in which the shorter inner lines are the most aligned with the longer outer lines..'))
  81.         self.textLabel1_2.setText(self._Align10Form_Base__tr('<b><font face="Courier">B:</font></b>'))
  82.         self.textLabel1_6.setText(self._Align10Form_Base__tr('<b><font face="Courier">F:</font></b>'))
  83.         self.textLabel1_3.setText(self._Align10Form_Base__tr('<b><font face="Courier">C:</font></b>'))
  84.         self.textLabel1_4.setText(self._Align10Form_Base__tr('<b><font face="Courier">D:</font></b>'))
  85.         self.textLabel1_7.setText(self._Align10Form_Base__tr('<b><font face="Courier">G:</font></b>'))
  86.         self.textLabel1.setText(self._Align10Form_Base__tr('<b><font face="Courier">A:</font></b>'))
  87.         self.textLabel1_5.setText(self._Align10Form_Base__tr('<b><font face="Courier">E:</font></b>'))
  88.         self.textLabel1_8.setText(self._Align10Form_Base__tr('<b><font face="Courier">H:</font></b>'))
  89.         self.pushButton1.setText(self._Align10Form_Base__tr('Next >'))
  90.         self.pushButton2.setText(self._Align10Form_Base__tr('Cancel'))
  91.  
  92.     
  93.     def __tr(self, s, c = None):
  94.         return qApp.translate('Align10Form_Base', s, c)
  95.  
  96.  
  97. if __name__ == '__main__':
  98.     a = QApplication(sys.argv)
  99.     QObject.connect(a, SIGNAL('lastWindowClosed()'), a, SLOT('quit()'))
  100.     w = Align10Form_Base()
  101.     a.setMainWidget(w)
  102.     w.show()
  103.     a.exec_loop()
  104.  
  105.