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

  1. # -*- coding: utf-8 -*-
  2.  
  3. # Form implementation generated from reading ui file 'ui/paperedgealignform_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 PaperEdgeAlignForm_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("PaperEdgeAlignForm_base")
  21.  
  22.  
  23.         PaperEdgeAlignForm_baseLayout = QGridLayout(self,1,1,11,6,"PaperEdgeAlignForm_baseLayout")
  24.         spacer37 = QSpacerItem(80,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
  25.         PaperEdgeAlignForm_baseLayout.addItem(spacer37,1,1)
  26.  
  27.         self.ContinueButton = QPushButton(self,"ContinueButton")
  28.  
  29.         PaperEdgeAlignForm_baseLayout.addWidget(self.ContinueButton,1,3)
  30.  
  31.         self.CancelButton = QPushButton(self,"CancelButton")
  32.  
  33.         PaperEdgeAlignForm_baseLayout.addWidget(self.CancelButton,1,2)
  34.  
  35.         self.buttonGroup = QButtonGroup(self,"buttonGroup")
  36.         self.buttonGroup.setSizePolicy(QSizePolicy(QSizePolicy.Minimum,QSizePolicy.Preferred,0,0,self.buttonGroup.sizePolicy().hasHeightForWidth()))
  37.         self.buttonGroup.setColumnLayout(0,Qt.Vertical)
  38.         self.buttonGroup.layout().setSpacing(6)
  39.         self.buttonGroup.layout().setMargin(11)
  40.         buttonGroupLayout = QGridLayout(self.buttonGroup.layout())
  41.         buttonGroupLayout.setAlignment(Qt.AlignTop)
  42.  
  43.         layout24 = QHBoxLayout(None,0,6,"layout24")
  44.  
  45.         self.radioButton1 = QRadioButton(self.buttonGroup,"radioButton1")
  46.         self.radioButton1.setChecked(1)
  47.         layout24.addWidget(self.radioButton1)
  48.  
  49.         self.radioButton2 = QRadioButton(self.buttonGroup,"radioButton2")
  50.         layout24.addWidget(self.radioButton2)
  51.  
  52.         self.radioButton3 = QRadioButton(self.buttonGroup,"radioButton3")
  53.         layout24.addWidget(self.radioButton3)
  54.  
  55.         self.radioButton4 = QRadioButton(self.buttonGroup,"radioButton4")
  56.         layout24.addWidget(self.radioButton4)
  57.  
  58.         self.radioButton5 = QRadioButton(self.buttonGroup,"radioButton5")
  59.         layout24.addWidget(self.radioButton5)
  60.  
  61.         self.radioButton6 = QRadioButton(self.buttonGroup,"radioButton6")
  62.         layout24.addWidget(self.radioButton6)
  63.  
  64.         self.radioButton7 = QRadioButton(self.buttonGroup,"radioButton7")
  65.         layout24.addWidget(self.radioButton7)
  66.  
  67.         self.radioButton8 = QRadioButton(self.buttonGroup,"radioButton8")
  68.         layout24.addWidget(self.radioButton8)
  69.  
  70.         self.radioButton9 = QRadioButton(self.buttonGroup,"radioButton9")
  71.         layout24.addWidget(self.radioButton9)
  72.  
  73.         self.radioButton10 = QRadioButton(self.buttonGroup,"radioButton10")
  74.         layout24.addWidget(self.radioButton10)
  75.  
  76.         self.radioButton11 = QRadioButton(self.buttonGroup,"radioButton11")
  77.         layout24.addWidget(self.radioButton11)
  78.  
  79.         self.radioButton12 = QRadioButton(self.buttonGroup,"radioButton12")
  80.         layout24.addWidget(self.radioButton12)
  81.  
  82.         self.radioButton13 = QRadioButton(self.buttonGroup,"radioButton13")
  83.         layout24.addWidget(self.radioButton13)
  84.  
  85.         buttonGroupLayout.addMultiCellLayout(layout24,1,1,0,1)
  86.  
  87.         self.Icon = QLabel(self.buttonGroup,"Icon")
  88.         self.Icon.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.Icon.sizePolicy().hasHeightForWidth()))
  89.         self.Icon.setScaledContents(1)
  90.  
  91.         buttonGroupLayout.addWidget(self.Icon,0,0)
  92.  
  93.         self.textLabel4_2 = QLabel(self.buttonGroup,"textLabel4_2")
  94.         self.textLabel4_2.setAlignment(QLabel.WordBreak | QLabel.AlignVCenter)
  95.  
  96.         buttonGroupLayout.addWidget(self.textLabel4_2,0,1)
  97.  
  98.         PaperEdgeAlignForm_baseLayout.addMultiCellWidget(self.buttonGroup,0,0,0,3)
  99.  
  100.         self.languageChange()
  101.  
  102.         self.resize(QSize(618,233).expandedTo(self.minimumSizeHint()))
  103.         self.clearWState(Qt.WState_Polished)
  104.  
  105.         self.connect(self.CancelButton,SIGNAL("clicked()"),self.reject)
  106.         self.connect(self.ContinueButton,SIGNAL("clicked()"),self.accept)
  107.         self.connect(self.buttonGroup,SIGNAL("clicked(int)"),self.buttonGroup_clicked)
  108.  
  109.  
  110.     def languageChange(self):
  111.         self.setCaption(self.__tr("HP Device Manager - Paper Edge Alignment"))
  112.         self.ContinueButton.setText(self.__tr("Next >"))
  113.         self.CancelButton.setText(self.__tr("Cancel"))
  114.         self.buttonGroup.setTitle(self.__tr("Paper Edge"))
  115.         self.radioButton1.setText(self.__tr("1"))
  116.         self.radioButton2.setText(self.__tr("2"))
  117.         self.radioButton3.setText(self.__tr("3"))
  118.         self.radioButton4.setText(self.__tr("4"))
  119.         self.radioButton5.setText(self.__tr("5"))
  120.         self.radioButton6.setText(self.__tr("6"))
  121.         self.radioButton7.setText(self.__tr("7"))
  122.         self.radioButton8.setText(self.__tr("8"))
  123.         self.radioButton9.setText(self.__tr("9"))
  124.         self.radioButton10.setText(self.__tr("10"))
  125.         self.radioButton11.setText(self.__tr("11"))
  126.         self.radioButton12.setText(self.__tr("12"))
  127.         self.radioButton13.setText(self.__tr("13"))
  128.         self.textLabel4_2.setText(self.__tr("Choose the <b>numbered arrow</b> that <b>best </b>marks the edge of the paper."))
  129.  
  130.  
  131.     def buttonGroup_clicked(self,a0):
  132.         print "PaperEdgeAlignForm_base.buttonGroup_clicked(int): Not implemented yet"
  133.  
  134.     def __tr(self,s,c = None):
  135.         return qApp.translate("PaperEdgeAlignForm_base",s,c)
  136.  
  137. if __name__ == "__main__":
  138.     a = QApplication(sys.argv)
  139.     QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
  140.     w = PaperEdgeAlignForm_base()
  141.     a.setMainWidget(w)
  142.     w.show()
  143.     a.exec_loop()
  144.