Tizen 2.1 base
[platform/upstream/hplip.git] / ui / aligntype6form1_base.py
1 # -*- coding: utf-8 -*-
2
3 # Form implementation generated from reading ui file '/home/dwelch/linux-imaging-and-printing/src/ui/aligntype6form1_base.ui'
4 #
5 # Created: Fri Apr 1 14:51:30 2005
6 #      by: The PyQt User Interface Compiler (pyuic) 3.14.1
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 AlignType6Form1_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("AlignType6Form1_base")
21
22
23         AlignType6Form1_baseLayout = QGridLayout(self,1,1,11,6,"AlignType6Form1_baseLayout")
24
25         self.textLabel1 = QLabel(self,"textLabel1")
26         self.textLabel1.setAlignment(QLabel.WordBreak | QLabel.AlignVCenter)
27
28         AlignType6Form1_baseLayout.addMultiCellWidget(self.textLabel1,0,0,0,2)
29
30         self.pushButton2 = QPushButton(self,"pushButton2")
31
32         AlignType6Form1_baseLayout.addWidget(self.pushButton2,1,2)
33
34         self.pushButton3 = QPushButton(self,"pushButton3")
35
36         AlignType6Form1_baseLayout.addWidget(self.pushButton3,1,1)
37         spacer2 = QSpacerItem(351,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
38         AlignType6Form1_baseLayout.addItem(spacer2,1,0)
39
40         self.languageChange()
41
42         self.resize(QSize(627,188).expandedTo(self.minimumSizeHint()))
43         self.clearWState(Qt.WState_Polished)
44
45         self.connect(self.pushButton2,SIGNAL("clicked()"),self.accept)
46         self.connect(self.pushButton3,SIGNAL("clicked()"),self.reject)
47
48
49     def languageChange(self):
50         self.setCaption(self.__tr("HP Device Manager - Alignment"))
51         self.textLabel1.setText(self.__tr("To perform alignment, you will need the <b>alignment page</b> that is automatically printed after you install a print cartridge.\n"
52 "<p> If you do <b>not</b> have this page, click <i>Print Page</i>.\n"
53 "<p>If you already have this page, click <i>Next ></i>."))
54         self.pushButton2.setText(self.__tr("Next >"))
55         self.pushButton3.setText(self.__tr("Print Page"))
56
57
58     def __tr(self,s,c = None):
59         return qApp.translate("AlignType6Form1_base",s,c)
60
61 if __name__ == "__main__":
62     a = QApplication(sys.argv)
63     QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
64     w = AlignType6Form1_base()
65     a.setMainWidget(w)
66     w.show()
67     a.exec_loop()