-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathui_order.py
122 lines (111 loc) · 5.64 KB
/
ui_order.py
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui_order.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
return s
try:
_encoding = QtGui.QApplication.UnicodeUTF8
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig)
class Ui_Form(object):
def __init__(self):
# self.tableWidget = None
pass
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(553, 440)
self.groupBox = QtGui.QGroupBox(Form)
self.groupBox.setGeometry(QtCore.QRect(10, 20, 251, 191))
self.groupBox.setObjectName(_fromUtf8("groupBox"))
self.layoutWidget = QtGui.QWidget(self.groupBox)
self.layoutWidget.setGeometry(QtCore.QRect(70, 20, 169, 157))
self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
self.verticalLayout_2 = QtGui.QVBoxLayout(self.layoutWidget)
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.verticalLayout = QtGui.QVBoxLayout()
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.label = QtGui.QLabel(self.layoutWidget)
self.label.setObjectName(_fromUtf8("label"))
self.horizontalLayout.addWidget(self.label)
self.code = QtGui.QLineEdit(self.layoutWidget)
self.code.setObjectName(_fromUtf8("code"))
self.horizontalLayout.addWidget(self.code)
self.verticalLayout.addLayout(self.horizontalLayout)
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.label_2 = QtGui.QLabel(self.layoutWidget)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.horizontalLayout_2.addWidget(self.label_2)
self.qty = QtGui.QSpinBox(self.layoutWidget)
self.qty.setObjectName(_fromUtf8("qty"))
self.horizontalLayout_2.addWidget(self.qty)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.horizontalLayout_3 = QtGui.QHBoxLayout()
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
self.label_3 = QtGui.QLabel(self.layoutWidget)
self.label_3.setObjectName(_fromUtf8("label_3"))
self.horizontalLayout_3.addWidget(self.label_3)
self.price = QtGui.QDoubleSpinBox(self.layoutWidget)
self.price.setObjectName(_fromUtf8("price"))
self.horizontalLayout_3.addWidget(self.price)
self.verticalLayout.addLayout(self.horizontalLayout_3)
self.horizontalLayout_4 = QtGui.QHBoxLayout()
self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
self.label_4 = QtGui.QLabel(self.layoutWidget)
self.label_4.setObjectName(_fromUtf8("label_4"))
self.horizontalLayout_4.addWidget(self.label_4)
self.type = QtGui.QComboBox(self.layoutWidget)
self.type.setObjectName(_fromUtf8("type"))
self.type.addItem(_fromUtf8(""))
self.type.addItem(_fromUtf8(""))
self.horizontalLayout_4.addWidget(self.type)
self.verticalLayout.addLayout(self.horizontalLayout_4)
self.verticalLayout_2.addLayout(self.verticalLayout)
self.pushButton = QtGui.QPushButton(self.layoutWidget)
self.pushButton.setObjectName(_fromUtf8("pushButton"))
self.verticalLayout_2.addWidget(self.pushButton)
self.layoutWidget.raise_()
self.layoutWidget.raise_()
self.layoutWidget.raise_()
self.tableWidget = QtGui.QTableWidget(Form)
self.tableWidget.setEnabled(True)
self.tableWidget.setGeometry(QtCore.QRect(10, 230, 511, 181))
self.tableWidget.setShowGrid(True)
self.tableWidget.setRowCount(0)
self.tableWidget.setColumnCount(2)
self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
self.tableWidget.horizontalHeader().setResizeMode(0, QtGui.QHeaderView.ResizeToContents)
self.tableWidget.horizontalHeader().setResizeMode(1, QtGui.QHeaderView.Stretch)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(0, item)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(1, item)
self.retranslateUi(Form)
QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("clicked()")), Form.btn_send_order)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(_translate("Form", "Form", None))
self.groupBox.setTitle(_translate("Form", "下单", None))
self.label.setText(_translate("Form", "代码", None))
self.label_2.setText(_translate("Form", "数量", None))
self.label_3.setText(_translate("Form", "价格", None))
self.label_4.setText(_translate("Form", "委托类型", None))
self.type.setItemText(0, _translate("Form", "买", None))
self.type.setItemText(1, _translate("Form", "卖", None))
self.pushButton.setText(_translate("Form", "submit", None))
item = self.tableWidget.horizontalHeaderItem(0)
item.setText(_translate("Form", "时间", None))
item = self.tableWidget.horizontalHeaderItem(1)
item.setText(_translate("Form", "消息", None))