home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / lib / hplip / ui / waitform_base.py < prev    next >
Encoding:
Python Source  |  2006-08-30  |  2.3 KB  |  73 lines

  1. # -*- coding: utf-8 -*-
  2.  
  3. # Form implementation generated from reading ui file 'ui/waitform_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 WaitForm_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("WaitForm_base")
  21.  
  22.  
  23.         WaitForm_baseLayout = QGridLayout(self,1,1,11,6,"WaitForm_baseLayout")
  24.  
  25.         layout2 = QVBoxLayout(None,0,6,"layout2")
  26.  
  27.         self.textLabel3 = QLabel(self,"textLabel3")
  28.         layout2.addWidget(self.textLabel3)
  29.  
  30.         self.ProgressBar = QProgressBar(self,"ProgressBar")
  31.         layout2.addWidget(self.ProgressBar)
  32.  
  33.         WaitForm_baseLayout.addMultiCellLayout(layout2,0,0,0,2)
  34.         spacer10 = QSpacerItem(20,30,QSizePolicy.Minimum,QSizePolicy.Expanding)
  35.         WaitForm_baseLayout.addItem(spacer10,1,1)
  36.  
  37.         self.cancelPushButton = QPushButton(self,"cancelPushButton")
  38.         self.cancelPushButton.setEnabled(0)
  39.  
  40.         WaitForm_baseLayout.addWidget(self.cancelPushButton,2,1)
  41.         spacer2 = QSpacerItem(121,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
  42.         WaitForm_baseLayout.addItem(spacer2,2,2)
  43.         spacer3 = QSpacerItem(131,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
  44.         WaitForm_baseLayout.addItem(spacer3,2,0)
  45.  
  46.         self.languageChange()
  47.  
  48.         self.resize(QSize(424,115).expandedTo(self.minimumSizeHint()))
  49.         self.clearWState(Qt.WState_Polished)
  50.  
  51.         self.connect(self.cancelPushButton,SIGNAL("clicked()"),self.cancelPushButton_clicked)
  52.  
  53.  
  54.     def languageChange(self):
  55.         self.setCaption(self.__tr("HP Device Manager - Waiting"))
  56.         self.textLabel3.setText(self.__tr("<b>Waiting for procedure to finish...</b>"))
  57.         self.cancelPushButton.setText(self.__tr("Cancel"))
  58.  
  59.  
  60.     def cancelPushButton_clicked(self):
  61.         print "WaitForm_base.cancelPushButton_clicked(): Not implemented yet"
  62.  
  63.     def __tr(self,s,c = None):
  64.         return qApp.translate("WaitForm_base",s,c)
  65.  
  66. if __name__ == "__main__":
  67.     a = QApplication(sys.argv)
  68.     QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
  69.     w = WaitForm_base()
  70.     a.setMainWidget(w)
  71.     w.show()
  72.     a.exec_loop()
  73.