Tizen 2.1 base
[platform/upstream/hplip.git] / ui / aligntype6form2_base.py
1 # -*- coding: utf-8 -*-
2
3 # Form implementation generated from reading ui file '/home/dwelch/linux-imaging-and-printing/src/ui/aligntype6form2_base.ui'
4 #
5 # Created: Fri Apr 1 14:51:27 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 AlignType6Form2_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("AlignType6Form2_base")
21
22
23         AlignType6Form2_baseLayout = QGridLayout(self,1,1,11,6,"AlignType6Form2_baseLayout")
24
25         self.textLabel1 = QLabel(self,"textLabel1")
26         self.textLabel1.setTextFormat(QLabel.RichText)
27         self.textLabel1.setAlignment(QLabel.WordBreak | QLabel.AlignVCenter)
28
29         AlignType6Form2_baseLayout.addMultiCellWidget(self.textLabel1,0,0,0,1)
30
31         self.pushButton4 = QPushButton(self,"pushButton4")
32
33         AlignType6Form2_baseLayout.addWidget(self.pushButton4,1,1)
34         spacer3 = QSpacerItem(581,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
35         AlignType6Form2_baseLayout.addItem(spacer3,1,0)
36
37         self.languageChange()
38
39         self.resize(QSize(626,211).expandedTo(self.minimumSizeHint()))
40         self.clearWState(Qt.WState_Polished)
41
42         self.connect(self.pushButton4,SIGNAL("clicked()"),self.accept)
43
44
45     def languageChange(self):
46         self.setCaption(self.__tr("HP Device Manager - Alignment"))
47         self.textLabel1.setText(self.__tr("<b>Follow these steps to complete the alignment:</b>\n"
48 "<p><b>1.</b> Place the alignment page, with the printed side facing down, on the scanner.\n"
49 "<p><b>2.</b> Press the <i>Enter</i> or <i>Scan</i> button on the printer.\n"
50 "<p><b>3.</b> \"Alignment Complete\" will be displayed when the process is finished (on some models).."))
51         self.pushButton4.setText(self.__tr("OK"))
52
53
54     def __tr(self,s,c = None):
55         return qApp.translate("AlignType6Form2_base",s,c)
56
57 if __name__ == "__main__":
58     a = QApplication(sys.argv)
59     QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
60     w = AlignType6Form2_base()
61     a.setMainWidget(w)
62     w.show()
63     a.exec_loop()