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

  1. # -*- coding: utf-8 -*-
  2.  
  3. # Form implementation generated from reading ui file 'ui/cleaningform_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 CleaningForm_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("CleaningForm_base")
  21.  
  22.         self.setSizeGripEnabled(1)
  23.  
  24.         CleaningForm_baseLayout = QGridLayout(self,1,1,6,6,"CleaningForm_baseLayout")
  25.  
  26.         self.Icon = QLabel(self,"Icon")
  27.         self.Icon.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.Icon.sizePolicy().hasHeightForWidth()))
  28.         self.Icon.setMinimumSize(QSize(71,65))
  29.         self.Icon.setMaximumSize(QSize(71,65))
  30.         self.Icon.setScaledContents(1)
  31.  
  32.         CleaningForm_baseLayout.addWidget(self.Icon,1,0)
  33.  
  34.         self.Finish = QPushButton(self,"Finish")
  35.  
  36.         CleaningForm_baseLayout.addWidget(self.Finish,3,3)
  37.         spacer2 = QSpacerItem(211,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
  38.         CleaningForm_baseLayout.addMultiCell(spacer2,3,3,0,1)
  39.  
  40.         self.Continue = QPushButton(self,"Continue")
  41.  
  42.         CleaningForm_baseLayout.addWidget(self.Continue,3,2)
  43.  
  44.         self.CleaningText = QLabel(self,"CleaningText")
  45.  
  46.         CleaningForm_baseLayout.addMultiCellWidget(self.CleaningText,1,1,1,3)
  47.         spacer5 = QSpacerItem(20,20,QSizePolicy.Minimum,QSizePolicy.Expanding)
  48.         CleaningForm_baseLayout.addItem(spacer5,2,2)
  49.  
  50.         self.CleaningTitle = QLabel(self,"CleaningTitle")
  51.  
  52.         CleaningForm_baseLayout.addMultiCellWidget(self.CleaningTitle,0,0,1,3)
  53.  
  54.         self.languageChange()
  55.  
  56.         self.resize(QSize(562,186).expandedTo(self.minimumSizeHint()))
  57.         self.clearWState(Qt.WState_Polished)
  58.  
  59.         self.connect(self.Continue,SIGNAL("clicked()"),self.reject)
  60.         self.connect(self.Finish,SIGNAL("clicked()"),self.accept)
  61.  
  62.  
  63.     def languageChange(self):
  64.         self.setCaption(self.__tr("HP Device Manager - Cleaning"))
  65.         self.Finish.setText(self.__tr("Finish"))
  66.         self.Continue.setText(self.__tr("Cleaning Level %s"))
  67.         self.CleaningText.setText(self.__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."))
  68.         self.CleaningTitle.setText(self.__tr("<b>Cleaning Level %s Performed</b>"))
  69.  
  70.  
  71.     def __tr(self,s,c = None):
  72.         return qApp.translate("CleaningForm_base",s,c)
  73.  
  74. if __name__ == "__main__":
  75.     a = QApplication(sys.argv)
  76.     QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
  77.     w = CleaningForm_base()
  78.     a.setMainWidget(w)
  79.     w.show()
  80.     a.exec_loop()
  81.