Commit 4774f8e1 authored by Dominique Piche's avatar Dominique Piche

add resolution ratio to nidaq gui

parent 27508254
......@@ -10,44 +10,46 @@ from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_DAQMainWin(object):
def setupUi(self, DAQMainWin):
resolution_ratio = 1.85
DAQMainWin.setObjectName("DAQMainWin")
DAQMainWin.resize(2500, 1450)
DAQMainWin.resize(1450/resolution_ratio, 2500/resolution_ratio)
self.centralwidget = QtWidgets.QWidget(DAQMainWin)
self.centralwidget.setObjectName("centralwidget")
self.StartDAQAcquisition = QtWidgets.QPushButton(self.centralwidget)
self.StartDAQAcquisition.setGeometry(QtCore.QRect(1110, 20, 161, 41))
self.StartDAQAcquisition.setGeometry(QtCore.QRect(1110/resolution_ratio, 20/resolution_ratio, 161/resolution_ratio, 41/resolution_ratio))
self.StartDAQAcquisition.setObjectName("StartDAQAcquisition")
self.StopDAQAcquisition = QtWidgets.QPushButton(self.centralwidget)
self.StopDAQAcquisition.setGeometry(QtCore.QRect(1300, 20, 161, 41))
self.StopDAQAcquisition.setGeometry(QtCore.QRect(1300/resolution_ratio, 20/resolution_ratio, 161/resolution_ratio, 41/resolution_ratio))
self.StopDAQAcquisition.setObjectName("StopDAQAcquisition")
self.label_1 = QtWidgets.QLabel(self.centralwidget)
# self.label_1.setGeometry(QtCore.QRect(950, 1080, 250, 40))
self.label_1.setGeometry(QtCore.QRect(1230, 1330, 250, 40))
self.label_1.setGeometry(QtCore.QRect(1230/resolution_ratio, 1330/resolution_ratio, 250/resolution_ratio, 40/resolution_ratio))
self.label_1.setObjectName("label_1")
self.label_1.setFont(QtGui.QFont('SansSerif', 10, QtGui.QFont.Bold))
self.label_2 = QtWidgets.QLabel(self.centralwidget)
self.label_2.setGeometry(QtCore.QRect(120, 55, 250, 40))
self.label_2.setGeometry(QtCore.QRect(120/resolution_ratio, 55/resolution_ratio, 250/resolution_ratio, 40/resolution_ratio))
self.label_2.setObjectName("label_2")
self.label_2.setFont(QtGui.QFont('SansSerif', 10, QtGui.QFont.Bold))
self.grPlot = PlotWidget(self.centralwidget)
self.grPlot.setGeometry(QtCore.QRect(120, 100, 1150, 600))
self.grPlot.setGeometry(QtCore.QRect(120/resolution_ratio, 100/resolution_ratio, 1150/resolution_ratio, 600/resolution_ratio))
self.grPlot.setObjectName("grPlot")
self.grPlot_2 = PlotWidget(self.centralwidget)
self.grPlot_2.setGeometry(QtCore.QRect(1300, 100, 1150, 600))
self.grPlot_2.setGeometry(QtCore.QRect(1300/resolution_ratio, 100/resolution_ratio, 1150/resolution_ratio, 600/resolution_ratio))
self.grPlot_2.setObjectName("grPlot_2")
self.grPlot_3 = PlotWidget(self.centralwidget)
self.grPlot_3.setGeometry(QtCore.QRect(120, 710, 1150, 600))
self.grPlot_3.setGeometry(QtCore.QRect(120/resolution_ratio, 710/resolution_ratio, 1150/resolution_ratio, 600/resolution_ratio))
self.grPlot_3.setObjectName("grPlot_3")
self.grPlot_4 = PlotWidget(self.centralwidget)
self.grPlot_4.setGeometry(QtCore.QRect(1300, 710, 1150, 600))
self.grPlot_4.setGeometry(QtCore.QRect(1300/resolution_ratio, 710/resolution_ratio, 1150/resolution_ratio, 600/resolution_ratio))
self.grPlot_4.setObjectName("grPlot_4")
DAQMainWin.setCentralWidget(self.centralwidget)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment