-
Notifications
You must be signed in to change notification settings - Fork 0
/
template_schedule.py
126 lines (118 loc) · 6.57 KB
/
template_schedule.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'template_schedule.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_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(1051, 592)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.tableWidget = QtGui.QTableWidget(self.centralwidget)
self.tableWidget.setEnabled(True)
self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
self.tableWidget.setColumnCount(6)
self.tableWidget.setRowCount(0)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(0, item)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(1, item)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(2, item)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(3, item)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(4, item)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(5, item)
self.verticalLayout.addWidget(self.tableWidget)
self.gridLayout = QtGui.QGridLayout()
self.gridLayout.setContentsMargins(-1, 5, -1, -1)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.thresholdValSpin = QtGui.QDoubleSpinBox(self.centralwidget)
self.thresholdValSpin.setDecimals(1)
self.thresholdValSpin.setMaximum(2500.0)
self.thresholdValSpin.setSingleStep(0.1)
self.thresholdValSpin.setProperty("value", 100.0)
self.thresholdValSpin.setObjectName(_fromUtf8("thresholdValSpin"))
self.gridLayout.addWidget(self.thresholdValSpin, 1, 3, 1, 1)
self.startDateTimeEdit = QtGui.QDateTimeEdit(self.centralwidget)
self.startDateTimeEdit.setDate(QtCore.QDate(2030, 1, 1))
self.startDateTimeEdit.setTime(QtCore.QTime(0, 0, 25))
self.startDateTimeEdit.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(7930, 12, 31), QtCore.QTime(23, 59, 59)))
self.startDateTimeEdit.setMinimumDateTime(QtCore.QDateTime(QtCore.QDate(2017, 1, 14), QtCore.QTime(0, 0, 0)))
self.startDateTimeEdit.setMaximumDate(QtCore.QDate(7930, 12, 31))
self.startDateTimeEdit.setMinimumDate(QtCore.QDate(2017, 1, 14))
self.startDateTimeEdit.setObjectName(_fromUtf8("startDateTimeEdit"))
self.gridLayout.addWidget(self.startDateTimeEdit, 1, 1, 1, 1)
self.addTaskBtn = QtGui.QPushButton(self.centralwidget)
self.addTaskBtn.setObjectName(_fromUtf8("addTaskBtn"))
self.gridLayout.addWidget(self.addTaskBtn, 1, 4, 1, 1)
self.label_2 = QtGui.QLabel(self.centralwidget)
self.label_2.setAlignment(QtCore.Qt.AlignCenter)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.gridLayout.addWidget(self.label_2, 0, 2, 1, 1)
self.label_3 = QtGui.QLabel(self.centralwidget)
self.label_3.setAlignment(QtCore.Qt.AlignCenter)
self.label_3.setObjectName(_fromUtf8("label_3"))
self.gridLayout.addWidget(self.label_3, 0, 3, 1, 1)
self.label = QtGui.QLabel(self.centralwidget)
self.label.setAlignment(QtCore.Qt.AlignCenter)
self.label.setObjectName(_fromUtf8("label"))
self.gridLayout.addWidget(self.label, 0, 1, 1, 1)
self.endDateTimeEdit = QtGui.QDateTimeEdit(self.centralwidget)
self.endDateTimeEdit.setTime(QtCore.QTime(0, 11, 17))
self.endDateTimeEdit.setMaximumDate(QtCore.QDate(7930, 12, 31))
self.endDateTimeEdit.setMinimumDate(QtCore.QDate(1817, 9, 14))
self.endDateTimeEdit.setObjectName(_fromUtf8("endDateTimeEdit"))
self.gridLayout.addWidget(self.endDateTimeEdit, 1, 2, 1, 1)
self.rmSelTasksBtn = QtGui.QPushButton(self.centralwidget)
self.rmSelTasksBtn.setObjectName(_fromUtf8("rmSelTasksBtn"))
self.gridLayout.addWidget(self.rmSelTasksBtn, 2, 4, 1, 1)
self.label_4 = QtGui.QLabel(self.centralwidget)
self.label_4.setText(_fromUtf8(""))
self.label_4.setObjectName(_fromUtf8("label_4"))
self.gridLayout.addWidget(self.label_4, 1, 0, 1, 1)
self.updTableBtn = QtGui.QPushButton(self.centralwidget)
self.updTableBtn.setObjectName(_fromUtf8("updTableBtn"))
self.gridLayout.addWidget(self.updTableBtn, 1, 5, 1, 1)
self.verticalLayout.addLayout(self.gridLayout)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
item = self.tableWidget.horizontalHeaderItem(0)
item.setText(_translate("MainWindow", "Job number", None))
item = self.tableWidget.horizontalHeaderItem(1)
item.setText(_translate("MainWindow", "Start time", None))
item = self.tableWidget.horizontalHeaderItem(2)
item.setText(_translate("MainWindow", "End time", None))
item = self.tableWidget.horizontalHeaderItem(3)
item.setText(_translate("MainWindow", "Threshold value, mV", None))
item = self.tableWidget.horizontalHeaderItem(4)
item.setText(_translate("MainWindow", "Status", None))
self.addTaskBtn.setText(_translate("MainWindow", "Add task", None))
self.label_2.setText(_translate("MainWindow", "End time", None))
self.label_3.setText(_translate("MainWindow", "Threshold value, mV", None))
self.label.setText(_translate("MainWindow", "Start time", None))
self.endDateTimeEdit.setDisplayFormat(_translate("MainWindow", "dd.MM.yy H:mm:ss", None))
self.rmSelTasksBtn.setText(_translate("MainWindow", "Remove selected tasks", None))
self.updTableBtn.setText(_translate("MainWindow", "Update table", None))