-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui_listplace.py
75 lines (68 loc) · 3.81 KB
/
ui_listplace.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '.\listreplace.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_ListReplace(object):
def setupUi(self, ListReplace):
ListReplace.setObjectName("ListReplace")
ListReplace.resize(330, 347)
self.tableView = QtWidgets.QTableView(ListReplace)
self.tableView.setGeometry(QtCore.QRect(10, 10, 311, 261))
self.tableView.setObjectName("tableView")
self.layoutWidget = QtWidgets.QWidget(ListReplace)
self.layoutWidget.setGeometry(QtCore.QRect(160, 300, 158, 35))
self.layoutWidget.setObjectName("layoutWidget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.layoutWidget)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.btnok = QtWidgets.QPushButton(self.layoutWidget)
self.btnok.setObjectName("btnok")
self.horizontalLayout.addWidget(self.btnok)
self.btncancel = QtWidgets.QPushButton(self.layoutWidget)
self.btncancel.setObjectName("btncancel")
self.horizontalLayout.addWidget(self.btncancel)
self.layoutWidget1 = QtWidgets.QWidget(ListReplace)
self.layoutWidget1.setGeometry(QtCore.QRect(20, 280, 55, 18))
self.layoutWidget1.setObjectName("layoutWidget1")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.layoutWidget1)
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.append_row = QtWidgets.QPushButton(self.layoutWidget1)
self.append_row.setStyleSheet("border:0px")
self.append_row.setText("")
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/images/img/plus_button.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.append_row.setIcon(icon)
self.append_row.setIconSize(QtCore.QSize(16, 16))
self.append_row.setObjectName("append_row")
self.horizontalLayout_2.addWidget(self.append_row)
self.remove_row = QtWidgets.QPushButton(self.layoutWidget1)
self.remove_row.setStyleSheet("border:0px")
self.remove_row.setText("")
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/images/img/minus_button.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.remove_row.setIcon(icon1)
self.remove_row.setIconSize(QtCore.QSize(23, 16))
self.remove_row.setObjectName("remove_row")
self.horizontalLayout_2.addWidget(self.remove_row)
self.chk_all = QtWidgets.QCheckBox(ListReplace)
self.chk_all.setGeometry(QtCore.QRect(230, 280, 91, 20))
self.chk_all.setObjectName("chk_all")
self.retranslateUi(ListReplace)
self.btnok.clicked.connect(ListReplace.accept)
self.btncancel.clicked.connect(ListReplace.reject)
QtCore.QMetaObject.connectSlotsByName(ListReplace)
def retranslateUi(self, ListReplace):
_translate = QtCore.QCoreApplication.translate
ListReplace.setWindowTitle(_translate("ListReplace", "ListReplace"))
self.btnok.setText(_translate("ListReplace", "确认"))
self.btncancel.setText(_translate("ListReplace", "取消"))
self.append_row.setToolTip(_translate("ListReplace", "<html><head/><body><p>添加一行</p></body></html>"))
self.append_row.setWhatsThis(_translate("ListReplace", "<html><head/><body><p><br/></p></body></html>"))
self.remove_row.setToolTip(_translate("ListReplace", "<html><head/><body><p>删除本行</p></body></html>"))
self.chk_all.setText(_translate("ListReplace", "全选/全不选"))
import imgs_rc