-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUi_PlotNarrowband.py
88 lines (80 loc) · 4.06 KB
/
Ui_PlotNarrowband.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Ui_PlotNarrowband.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.setWindowModality(QtCore.Qt.NonModal)
MainWindow.resize(722, 544)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("docs/imgs/ISWI_Logo_sm.jpg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setObjectName("label")
self.horizontalLayout.addWidget(self.label)
self.startTime = QtWidgets.QTimeEdit(self.centralwidget)
self.startTime.setObjectName("startTime")
self.horizontalLayout.addWidget(self.startTime)
self.label_2 = QtWidgets.QLabel(self.centralwidget)
self.label_2.setObjectName("label_2")
self.horizontalLayout.addWidget(self.label_2)
self.endTime = QtWidgets.QTimeEdit(self.centralwidget)
self.endTime.setTime(QtCore.QTime(23, 59, 59))
self.endTime.setObjectName("endTime")
self.horizontalLayout.addWidget(self.endTime)
self.replot = QtWidgets.QPushButton(self.centralwidget)
self.replot.setObjectName("replot")
self.horizontalLayout.addWidget(self.replot)
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.view_raw = QtWidgets.QCheckBox(self.centralwidget)
self.view_raw.setChecked(True)
self.view_raw.setObjectName("view_raw")
self.horizontalLayout.addWidget(self.view_raw)
self.view_average = QtWidgets.QCheckBox(self.centralwidget)
self.view_average.setChecked(True)
self.view_average.setObjectName("view_average")
self.horizontalLayout.addWidget(self.view_average)
self.verticalLayout.addLayout(self.horizontalLayout)
self.mplwidget = MPL_WIDGET_2D(self.centralwidget)
self.mplwidget.setObjectName("mplwidget")
self.verticalLayout.addWidget(self.mplwidget)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 722, 21))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "PyDAQviewer: Plot Narrowband Data"))
self.label.setText(_translate("MainWindow", "Start Time"))
self.startTime.setDisplayFormat(_translate("MainWindow", "HH:mm:ss"))
self.label_2.setText(_translate("MainWindow", "End Time"))
self.endTime.setDisplayFormat(_translate("MainWindow", "HH:mm:ss"))
self.replot.setText(_translate("MainWindow", "Replot"))
self.view_raw.setText(_translate("MainWindow", "View Raw DATA"))
self.view_average.setText(_translate("MainWindow", "Vew Arerage DATA"))
from mplwidget import MPL_WIDGET_2D
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())