coding utf-8 Form implementation generated from reading ui file untitl

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'untitled.ui'
#
# Created: Wed Mar 5 14:08:04 2008
# by: PyQt4 UI code generator 4.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(QtCore.QSize(QtCore.QRect(0,0,400,300).size()).expandedTo(Form.minimumSizeHint()))
self.hboxlayout = QtGui.QHBoxLayout(Form)
self.hboxlayout.setObjectName("hboxlayout")
self.frame = QtGui.QFrame(Form)
self.frame.setAutoFillBackground(False)
self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
self.frame.setFrameShadow(QtGui.QFrame.Raised)
self.frame.setObjectName("frame")
self.vboxlayout = QtGui.QVBoxLayout(self.frame)
self.vboxlayout.setObjectName("vboxlayout")
self.label = QtGui.QLabel(self.frame)
self.label.setObjectName("label")
self.vboxlayout.addWidget(self.label)
self.label_2 = QtGui.QLabel(self.frame)
self.label_2.setObjectName("label_2")
self.vboxlayout.addWidget(self.label_2)
self.label_3 = QtGui.QLabel(self.frame)
self.label_3.setObjectName("label_3")
self.vboxlayout.addWidget(self.label_3)
spacerItem = QtGui.QSpacerItem(20,40,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
self.vboxlayout.addItem(spacerItem)
self.hboxlayout.addWidget(self.frame)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8))
self.label.setStyleSheet(QtGui.QApplication.translate("Form", "background: red", None, QtGui.QApplication.UnicodeUTF8))
self.label.setText(QtGui.QApplication.translate("Form", "TextLabel", None, QtGui.QApplication.UnicodeUTF8))
self.label_2.setStyleSheet(QtGui.QApplication.translate("Form", "background: lightgreen", None, QtGui.QApplication.UnicodeUTF8))
self.label_2.setText(QtGui.QApplication.translate("Form", "TextLabel", None, QtGui.QApplication.UnicodeUTF8))
self.label_3.setStyleSheet(QtGui.QApplication.translate("Form", "background: yellow", None, QtGui.QApplication.UnicodeUTF8))
self.label_3.setText(QtGui.QApplication.translate("Form", "TextLabel", None, QtGui.QApplication.UnicodeUTF8))
if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
Form = QtGui.QWidget()
ui = Ui_Form()
ui.setupUi(Form)
Form.show()
sys.exit(app.exec_())