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.py < prev    next >
Encoding:
Python Source  |  2006-08-30  |  2.4 KB  |  72 lines

  1. # -*- coding: utf-8 -*-
  2.  
  3. # Form implementation generated from reading ui file 'ui/loadpaperform_base.ui'
  4. #
  5. # Created: Wed Aug 30 11:37:46 2006
  6. #      by: The PyQt User Interface Compiler (pyuic) 3.16
  7. #
  8. # WARNING! All changes made in this file will be lost!
  9.  
  10.  
  11. import sys
  12. from qt import *
  13.  
  14.  
  15. class LoadPaperForm_base(QDialog):
  16.     def __init__(self,parent = None,name = None,modal = 0,fl = 0):
  17.         QDialog.__init__(self,parent,name,modal,fl)
  18.  
  19.         if not name:
  20.             self.setName("LoadPaperForm_base")
  21.  
  22.  
  23.         LoadPaperForm_baseLayout = QGridLayout(self,1,1,11,6,"LoadPaperForm_baseLayout")
  24.  
  25.         self.ContinueButton = QPushButton(self,"ContinueButton")
  26.  
  27.         LoadPaperForm_baseLayout.addWidget(self.ContinueButton,1,3)
  28.  
  29.         self.CancelButton = QPushButton(self,"CancelButton")
  30.  
  31.         LoadPaperForm_baseLayout.addWidget(self.CancelButton,1,2)
  32.         spacer7 = QSpacerItem(391,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
  33.         LoadPaperForm_baseLayout.addMultiCell(spacer7,1,1,0,1)
  34.  
  35.         self.textLabel7 = QLabel(self,"textLabel7")
  36.         self.textLabel7.setAlignment(QLabel.WordBreak | QLabel.AlignVCenter)
  37.  
  38.         LoadPaperForm_baseLayout.addMultiCellWidget(self.textLabel7,0,0,1,3)
  39.  
  40.         self.Icon = QLabel(self,"Icon")
  41.         self.Icon.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.Icon.sizePolicy().hasHeightForWidth()))
  42.         self.Icon.setScaledContents(1)
  43.  
  44.         LoadPaperForm_baseLayout.addWidget(self.Icon,0,0)
  45.  
  46.         self.languageChange()
  47.  
  48.         self.resize(QSize(621,178).expandedTo(self.minimumSizeHint()))
  49.         self.clearWState(Qt.WState_Polished)
  50.  
  51.         self.connect(self.CancelButton,SIGNAL("clicked()"),self.reject)
  52.         self.connect(self.ContinueButton,SIGNAL("clicked()"),self.accept)
  53.  
  54.  
  55.     def languageChange(self):
  56.         self.setCaption(self.__tr("HP Device Manager - Load Plain Paper"))
  57.         self.ContinueButton.setText(self.__tr("Continue"))
  58.         self.CancelButton.setText(self.__tr("Cancel"))
  59.         self.textLabel7.setText(self.__tr("A page will be printed. Please load <b>plain paper</b> in the printer and then press continue."))
  60.  
  61.  
  62.     def __tr(self,s,c = None):
  63.         return qApp.translate("LoadPaperForm_base",s,c)
  64.  
  65. if __name__ == "__main__":
  66.     a = QApplication(sys.argv)
  67.     QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
  68.     w = LoadPaperForm_base()
  69.     a.setMainWidget(w)
  70.     w.show()
  71.     a.exec_loop()
  72.