##// END OF EJS Templates
ui_initwindow: ...
Alexander Valdez -
r373:c4d9885579a3
parent child
Show More
@@ -1,90 +1,88
1 1 # -*- coding: utf-8 -*-
2 2
3 # Form implementation generated from reading ui file 'C:\Users\alex\ericworkspace\GUIV1\WelcomeLast.ui'
3 # Form implementation generated from reading ui file '/home/roj-idl71/SignalChain/initwindowv2.ui'
4 4 #
5 # Created: Thu Dec 13 10:07:01 2012
6 # by: PyQt4 UI code generator 4.9.4
5 # Created: Wed Mar 6 15:32:39 2013
6 # by: PyQt4 UI code generator 4.8.6
7 7 #
8 8 # WARNING! All changes made in this file will be lost!
9 9
10 10 from PyQt4 import QtCore, QtGui
11 11
12 12 try:
13 13 _fromUtf8 = QtCore.QString.fromUtf8
14 14 except AttributeError:
15 15 _fromUtf8 = lambda s: s
16 16
17 17 class Ui_InitWindow(object):
18 def setupUi(self, form):
19 form.setObjectName(_fromUtf8("form"))
20 form.resize(622, 516)
21 self.centralWidget = QtGui.QWidget(form)
22 self.centralWidget.setObjectName(_fromUtf8("centralWidget"))
23 self.gridLayout = QtGui.QGridLayout(self.centralWidget)
18 def setupUi(self, Dialog):
19 Dialog.setObjectName(_fromUtf8("Dialog"))
20 Dialog.resize(652, 496)
21 Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8))
22 self.gridLayout = QtGui.QGridLayout(Dialog)
24 23 self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
25 self.verticalLayout_2 = QtGui.QVBoxLayout()
26 self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
27 self.verticalLayout = QtGui.QVBoxLayout()
28 self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
29 self.label = QtGui.QLabel(self.centralWidget)
24 self.verticalLayout_3 = QtGui.QVBoxLayout()
25 self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
26 self.verticalLayout_4 = QtGui.QVBoxLayout()
27 self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
28 self.label_3 = QtGui.QLabel(Dialog)
30 29 font = QtGui.QFont()
31 30 font.setFamily(_fromUtf8("Cambria"))
32 31 font.setPointSize(22)
33 32 font.setBold(False)
34 33 font.setWeight(50)
35 self.label.setFont(font)
36 self.label.setObjectName(_fromUtf8("label"))
37 self.verticalLayout.addWidget(self.label)
38 self.line = QtGui.QFrame(self.centralWidget)
39 self.line.setFrameShape(QtGui.QFrame.HLine)
40 self.line.setFrameShadow(QtGui.QFrame.Sunken)
41 self.line.setObjectName(_fromUtf8("line"))
42 self.verticalLayout.addWidget(self.line)
43 self.label_2 = QtGui.QLabel(self.centralWidget)
44 self.label_2.setText(_fromUtf8(""))
45 self.label_2.setPixmap(QtGui.QPixmap(_fromUtf8("figure/w.jpg")))
46 self.label_2.setScaledContents(True)
47 self.label_2.setObjectName(_fromUtf8("label_2"))
48 self.verticalLayout.addWidget(self.label_2)
49 self.verticalLayout_2.addLayout(self.verticalLayout)
50 self.horizontalLayout_2 = QtGui.QHBoxLayout()
51 self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
52 self.horizontalLayout = QtGui.QHBoxLayout()
53 self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
34 self.label_3.setFont(font)
35 self.label_3.setText(QtGui.QApplication.translate("Dialog", "Signal Chain - Ver. 1.0", None, QtGui.QApplication.UnicodeUTF8))
36 self.label_3.setObjectName(_fromUtf8("label_3"))
37 self.verticalLayout_4.addWidget(self.label_3)
38 self.line_2 = QtGui.QFrame(Dialog)
39 self.line_2.setFrameShape(QtGui.QFrame.HLine)
40 self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
41 self.line_2.setObjectName(_fromUtf8("line_2"))
42 self.verticalLayout_4.addWidget(self.line_2)
43 self.label_4 = QtGui.QLabel(Dialog)
44 self.label_4.setText(_fromUtf8(""))
45 self.label_4.setPixmap(QtGui.QPixmap(_fromUtf8("figure/w.jpg")))
46 self.label_4.setScaledContents(True)
47 self.label_4.setObjectName(_fromUtf8("label_4"))
48 self.verticalLayout_4.addWidget(self.label_4)
49 self.verticalLayout_3.addLayout(self.verticalLayout_4)
50 self.horizontalLayout_3 = QtGui.QHBoxLayout()
51 self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
52 self.horizontalLayout_4 = QtGui.QHBoxLayout()
53 self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
54 54 spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
55 self.horizontalLayout.addItem(spacerItem)
56 self.ExitBtn = QtGui.QPushButton(self.centralWidget)
55 self.horizontalLayout_4.addItem(spacerItem)
56 self.ExitBtn = QtGui.QPushButton(Dialog)
57 self.ExitBtn.setText(QtGui.QApplication.translate("Dialog", "Exit", None, QtGui.QApplication.UnicodeUTF8))
57 58 self.ExitBtn.setObjectName(_fromUtf8("ExitBtn"))
58 self.horizontalLayout.addWidget(self.ExitBtn)
59 self.ContinueBtn = QtGui.QPushButton(self.centralWidget)
59 self.horizontalLayout_4.addWidget(self.ExitBtn)
60 self.ContinueBtn = QtGui.QPushButton(Dialog)
61 self.ContinueBtn.setText(QtGui.QApplication.translate("Dialog", "Continue", None, QtGui.QApplication.UnicodeUTF8))
60 62 self.ContinueBtn.setObjectName(_fromUtf8("ContinueBtn"))
61 self.horizontalLayout.addWidget(self.ContinueBtn)
63 self.horizontalLayout_4.addWidget(self.ContinueBtn)
62 64 spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
63 self.horizontalLayout.addItem(spacerItem1)
64 self.horizontalLayout_2.addLayout(self.horizontalLayout)
65 self.verticalLayout_2.addLayout(self.horizontalLayout_2)
66 self.gridLayout.addLayout(self.verticalLayout_2, 0, 0, 1, 1)
67 form.setCentralWidget(self.centralWidget)
68 self.statusBar = QtGui.QStatusBar(form)
69 self.statusBar.setObjectName(_fromUtf8("statusBar"))
70 form.setStatusBar(self.statusBar)
65 self.horizontalLayout_4.addItem(spacerItem1)
66 self.horizontalLayout_3.addLayout(self.horizontalLayout_4)
67 self.verticalLayout_3.addLayout(self.horizontalLayout_3)
68 self.gridLayout.addLayout(self.verticalLayout_3, 0, 0, 1, 1)
71 69
72 self.retranslateUi(form)
73 QtCore.QMetaObject.connectSlotsByName(form)
70 self.retranslateUi(Dialog)
71 QtCore.QMetaObject.connectSlotsByName(Dialog)
74 72
75 def retranslateUi(self, form):
76 form.setWindowTitle(QtGui.QApplication.translate("form", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
77 self.label.setText(QtGui.QApplication.translate("form", "Signal Chain - Ver. 1.0", None, QtGui.QApplication.UnicodeUTF8))
78 self.ExitBtn.setText(QtGui.QApplication.translate("form", "Exit", None, QtGui.QApplication.UnicodeUTF8))
79 self.ContinueBtn.setText(QtGui.QApplication.translate("form", "Continue", None, QtGui.QApplication.UnicodeUTF8))
73 def retranslateUi(self, Dialog):
74 pass
80 75
81 76
82 77 if __name__ == "__main__":
83 78 import sys
84 79 app = QtGui.QApplication(sys.argv)
85 form = QtGui.QMainWindow()
80 Dialog = QtGui.QDialog()
86 81 ui = Ui_InitWindow()
87 ui.setupUi(form)
88 form.show()
82 ui.setupUi(Dialog)
83 Dialog.show()
89 84 sys.exit(app.exec_())
90 85
86
87
88
General Comments 0
You need to be logged in to leave comments. Login now