-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui_TouristBRDialog.py
163 lines (156 loc) · 7.5 KB
/
ui_TouristBRDialog.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'TouristBRDialog.ui'
#
# Created by: PyQt5 UI code generator 5.15.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_TouristBRDialog(object):
def setupUi(self, TouristBRDialog):
TouristBRDialog.setObjectName("TouristBRDialog")
TouristBRDialog.resize(700, 281)
self.verticalLayout_2 = QtWidgets.QVBoxLayout(TouristBRDialog)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
self.tourist_info = QtWidgets.QTableWidget(TouristBRDialog)
self.tourist_info.setObjectName("tourist_info")
self.tourist_info.setColumnCount(1)
self.tourist_info.setRowCount(4)
item = QtWidgets.QTableWidgetItem()
item.setTextAlignment(QtCore.Qt.AlignCenter)
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.tourist_info.setVerticalHeaderItem(0, item)
item = QtWidgets.QTableWidgetItem()
item.setTextAlignment(QtCore.Qt.AlignCenter)
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.tourist_info.setVerticalHeaderItem(1, item)
item = QtWidgets.QTableWidgetItem()
item.setTextAlignment(QtCore.Qt.AlignCenter)
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.tourist_info.setVerticalHeaderItem(2, item)
item = QtWidgets.QTableWidgetItem()
item.setTextAlignment(QtCore.Qt.AlignCenter)
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.tourist_info.setVerticalHeaderItem(3, item)
item = QtWidgets.QTableWidgetItem()
item.setTextAlignment(QtCore.Qt.AlignCenter)
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.tourist_info.setHorizontalHeaderItem(0, item)
item = QtWidgets.QTableWidgetItem()
item.setTextAlignment(QtCore.Qt.AlignCenter)
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.tourist_info.setItem(0, 0, item)
item = QtWidgets.QTableWidgetItem()
item.setTextAlignment(QtCore.Qt.AlignCenter)
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.tourist_info.setItem(1, 0, item)
item = QtWidgets.QTableWidgetItem()
item.setTextAlignment(QtCore.Qt.AlignCenter)
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.tourist_info.setItem(2, 0, item)
item = QtWidgets.QTableWidgetItem()
item.setTextAlignment(QtCore.Qt.AlignCenter)
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(12)
item.setFont(font)
self.tourist_info.setItem(3, 0, item)
self.verticalLayout.addWidget(self.tourist_info)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.borrow_choose = QtWidgets.QRadioButton(TouristBRDialog)
font = QtGui.QFont()
font.setPointSize(12)
self.borrow_choose.setFont(font)
self.borrow_choose.setObjectName("borrow_choose")
self.horizontalLayout.addWidget(self.borrow_choose)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem1)
self.return_choose = QtWidgets.QRadioButton(TouristBRDialog)
font = QtGui.QFont()
font.setPointSize(12)
self.return_choose.setFont(font)
self.return_choose.setObjectName("return_choose")
self.horizontalLayout.addWidget(self.return_choose)
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem2)
self.verticalLayout.addLayout(self.horizontalLayout)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem3)
self.OK = QtWidgets.QPushButton(TouristBRDialog)
font = QtGui.QFont()
font.setPointSize(12)
self.OK.setFont(font)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icons/icons/ok.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.OK.setIcon(icon)
self.OK.setObjectName("OK")
self.horizontalLayout_2.addWidget(self.OK)
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem4)
self.Cancel = QtWidgets.QPushButton(TouristBRDialog)
font = QtGui.QFont()
font.setPointSize(12)
self.Cancel.setFont(font)
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/icons/icons/cancel.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.Cancel.setIcon(icon1)
self.Cancel.setObjectName("Cancel")
self.horizontalLayout_2.addWidget(self.Cancel)
spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem5)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.verticalLayout_2.addLayout(self.verticalLayout)
self.retranslateUi(TouristBRDialog)
QtCore.QMetaObject.connectSlotsByName(TouristBRDialog)
def retranslateUi(self, TouristBRDialog):
_translate = QtCore.QCoreApplication.translate
TouristBRDialog.setWindowTitle(_translate("TouristBRDialog", "Dialog"))
item = self.tourist_info.verticalHeaderItem(0)
item.setText(_translate("TouristBRDialog", "读者ID"))
item = self.tourist_info.verticalHeaderItem(1)
item.setText(_translate("TouristBRDialog", "借阅/归还时间"))
item = self.tourist_info.verticalHeaderItem(2)
item.setText(_translate("TouristBRDialog", "借阅/归还地点"))
item = self.tourist_info.verticalHeaderItem(3)
item.setText(_translate("TouristBRDialog", "借阅时长(归还时不填)"))
item = self.tourist_info.horizontalHeaderItem(0)
item.setText(_translate("TouristBRDialog", "游客信息"))
__sortingEnabled = self.tourist_info.isSortingEnabled()
self.tourist_info.setSortingEnabled(False)
self.tourist_info.setSortingEnabled(__sortingEnabled)
self.borrow_choose.setText(_translate("TouristBRDialog", "借阅"))
self.return_choose.setText(_translate("TouristBRDialog", "归还"))
self.OK.setText(_translate("TouristBRDialog", "OK"))
self.Cancel.setText(_translate("TouristBRDialog", "Cancel"))
import res_rc