This repository has been archived by the owner on Sep 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
StatisticsDialog.py
106 lines (96 loc) · 5 KB
/
StatisticsDialog.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'DesignerFiles/Statistics.ui'
#
# Created by: PyQt5 UI code generator 5.12.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(543, 254)
self.StatisticsTable = QtWidgets.QTableWidget(Dialog)
self.StatisticsTable.setGeometry(QtCore.QRect(0, 0, 541, 211))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.StatisticsTable.sizePolicy().hasHeightForWidth())
self.StatisticsTable.setSizePolicy(sizePolicy)
self.StatisticsTable.setObjectName("StatisticsTable")
self.StatisticsTable.setColumnCount(4)
self.StatisticsTable.setRowCount(6)
item = QtWidgets.QTableWidgetItem()
self.StatisticsTable.setVerticalHeaderItem(0, item)
item = QtWidgets.QTableWidgetItem()
self.StatisticsTable.setVerticalHeaderItem(1, item)
item = QtWidgets.QTableWidgetItem()
self.StatisticsTable.setVerticalHeaderItem(2, item)
item = QtWidgets.QTableWidgetItem()
self.StatisticsTable.setVerticalHeaderItem(3, item)
item = QtWidgets.QTableWidgetItem()
self.StatisticsTable.setVerticalHeaderItem(4, item)
item = QtWidgets.QTableWidgetItem()
self.StatisticsTable.setVerticalHeaderItem(5, item)
item = QtWidgets.QTableWidgetItem()
self.StatisticsTable.setHorizontalHeaderItem(0, item)
item = QtWidgets.QTableWidgetItem()
self.StatisticsTable.setHorizontalHeaderItem(1, item)
item = QtWidgets.QTableWidgetItem()
self.StatisticsTable.setHorizontalHeaderItem(2, item)
item = QtWidgets.QTableWidgetItem()
self.StatisticsTable.setHorizontalHeaderItem(3, item)
item = QtWidgets.QTableWidgetItem()
self.StatisticsTable.setItem(0, 0, item)
self.horizontalLayoutWidget = QtWidgets.QWidget(Dialog)
self.horizontalLayoutWidget.setGeometry(QtCore.QRect(0, 220, 541, 31))
self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.pushButton_Export = QtWidgets.QPushButton(self.horizontalLayoutWidget)
self.pushButton_Export.setObjectName("pushButton_Export")
self.horizontalLayout.addWidget(self.pushButton_Export)
self.buttonBox = QtWidgets.QDialogButtonBox(self.horizontalLayoutWidget)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
self.buttonBox.setObjectName("buttonBox")
self.horizontalLayout.addWidget(self.buttonBox)
self.retranslateUi(Dialog)
self.buttonBox.accepted.connect(Dialog.accept)
self.buttonBox.rejected.connect(Dialog.reject)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "Statistics in percent"))
item = self.StatisticsTable.verticalHeaderItem(0)
item.setText(_translate("Dialog", "Clear"))
item = self.StatisticsTable.verticalHeaderItem(1)
item.setText(_translate("Dialog", "Precipitate"))
item = self.StatisticsTable.verticalHeaderItem(2)
item.setText(_translate("Dialog", "Crystal"))
item = self.StatisticsTable.verticalHeaderItem(3)
item.setText(_translate("Dialog", "Phase Separation"))
item = self.StatisticsTable.verticalHeaderItem(4)
item.setText(_translate("Dialog", "Other"))
item = self.StatisticsTable.verticalHeaderItem(5)
item.setText(_translate("Dialog", "Unsorted"))
item = self.StatisticsTable.horizontalHeaderItem(0)
item.setText(_translate("Dialog", "Subwell a"))
item = self.StatisticsTable.horizontalHeaderItem(1)
item.setText(_translate("Dialog", "Subwell b"))
item = self.StatisticsTable.horizontalHeaderItem(2)
item.setText(_translate("Dialog", "Subwell c"))
item = self.StatisticsTable.horizontalHeaderItem(3)
item.setText(_translate("Dialog", "No subwell"))
__sortingEnabled = self.StatisticsTable.isSortingEnabled()
self.StatisticsTable.setSortingEnabled(False)
self.StatisticsTable.setSortingEnabled(__sortingEnabled)
self.pushButton_Export.setText(_translate("Dialog", "Export"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
Dialog = QtWidgets.QDialog()
ui = Ui_Dialog()
ui.setupUi(Dialog)
Dialog.show()
sys.exit(app.exec_())