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

  1. # -*- coding: utf-8 -*-
  2.  
  3. # Form implementation generated from reading ui file 'ui/aboutdlg_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 AboutDlg_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("AboutDlg_base")
  21.  
  22.  
  23.         AboutDlg_baseLayout = QGridLayout(self,1,1,11,6,"AboutDlg_baseLayout")
  24.  
  25.         self.textLabel1 = QLabel(self,"textLabel1")
  26.  
  27.         AboutDlg_baseLayout.addMultiCellWidget(self.textLabel1,0,0,0,3)
  28.         spacer15 = QSpacerItem(340,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
  29.         AboutDlg_baseLayout.addMultiCell(spacer15,7,7,0,2)
  30.  
  31.         self.pushButton15 = QPushButton(self,"pushButton15")
  32.  
  33.         AboutDlg_baseLayout.addWidget(self.pushButton15,7,3)
  34.  
  35.         self.pyPixmap = QLabel(self,"pyPixmap")
  36.         self.pyPixmap.setMinimumSize(QSize(200,62))
  37.         self.pyPixmap.setMaximumSize(QSize(200,62))
  38.         self.pyPixmap.setScaledContents(1)
  39.  
  40.         AboutDlg_baseLayout.addWidget(self.pyPixmap,6,0)
  41.  
  42.         self.osiPixmap = QLabel(self,"osiPixmap")
  43.         self.osiPixmap.setMinimumSize(QSize(75,65))
  44.         self.osiPixmap.setMaximumSize(QSize(75,65))
  45.         self.osiPixmap.setScaledContents(1)
  46.  
  47.         AboutDlg_baseLayout.addMultiCellWidget(self.osiPixmap,6,6,1,2)
  48.         spacer5 = QSpacerItem(20,50,QSizePolicy.Minimum,QSizePolicy.Expanding)
  49.         AboutDlg_baseLayout.addItem(spacer5,5,2)
  50.         spacer4 = QSpacerItem(20,50,QSizePolicy.Minimum,QSizePolicy.Expanding)
  51.         AboutDlg_baseLayout.addItem(spacer4,5,0)
  52.  
  53.         self.textLabel2 = QLabel(self,"textLabel2")
  54.  
  55.         AboutDlg_baseLayout.addMultiCellWidget(self.textLabel2,4,4,0,3)
  56.  
  57.         self.textLabel3 = QLabel(self,"textLabel3")
  58.  
  59.         AboutDlg_baseLayout.addMultiCellWidget(self.textLabel3,3,3,0,3)
  60.  
  61.         layout1 = QHBoxLayout(None,0,6,"layout1")
  62.  
  63.         self.textLabel4 = QLabel(self,"textLabel4")
  64.         layout1.addWidget(self.textLabel4)
  65.  
  66.         self.VersionText = QLabel(self,"VersionText")
  67.         layout1.addWidget(self.VersionText)
  68.  
  69.         AboutDlg_baseLayout.addMultiCellLayout(layout1,2,2,0,3)
  70.         spacer6 = QSpacerItem(20,21,QSizePolicy.Minimum,QSizePolicy.Expanding)
  71.         AboutDlg_baseLayout.addItem(spacer6,1,1)
  72.  
  73.         self.languageChange()
  74.  
  75.         self.resize(QSize(465,522).expandedTo(self.minimumSizeHint()))
  76.         self.clearWState(Qt.WState_Polished)
  77.  
  78.         self.connect(self.pushButton15,SIGNAL("clicked()"),self.close)
  79.  
  80.  
  81.     def languageChange(self):
  82.         self.setCaption(self.__tr("HP Device Manager - About"))
  83.         self.textLabel1.setText(self.__tr("<font size=\"+3\"><p align=\"center\">HP Linux Imaging and Printing (HPLIP)</p></font>"))
  84.         self.pushButton15.setText(self.__tr("OK"))
  85.         self.textLabel2.setText(self.__tr("<b>Authors and Contributors:</b>\n"
  86. "David Suffield, Don Welch, Shiyun Yie, Raghothama Cauligi, John Oleinik, Cory Meisch, Foster Nuffer, Pete Parks, Jacqueline Pitter, David Paschal, Steve DeRoos, Mark Overton, Aaron Albright, Smith Kennedy, John Hosszu, Chris Wiesner, Henrique M. Holschuh"))
  87.         self.textLabel3.setText(self.__tr("<b>License and Copyright:</b>\n"
  88. "(c) Copyright 2006 Hewlett-Packard Development Company, L.P. This software is licensed under the GNU General Public License (GPL), BSD, and MIT licenses. See the software sources for details."))
  89.         self.textLabel4.setText(self.__tr("<b>Software Version:</b>"))
  90.         self.VersionText.setText(self.__tr("0.0.0"))
  91.  
  92.  
  93.     def __tr(self,s,c = None):
  94.         return qApp.translate("AboutDlg_base",s,c)
  95.  
  96. if __name__ == "__main__":
  97.     a = QApplication(sys.argv)
  98.     QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
  99.     w = AboutDlg_base()
  100.     a.setMainWidget(w)
  101.     w.show()
  102.     a.exec_loop()
  103.