8d148b639b
change to src layout
75 lines
3.7 KiB
Python
75 lines
3.7 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Form implementation generated from reading ui file '_ui/apod_dialog.ui'
|
|
#
|
|
# Created by: PyQt5 UI code generator 5.12.3
|
|
#
|
|
# WARNING! All changes made in this file will be lost!
|
|
|
|
|
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
|
|
|
|
|
class Ui_ApodEdit(object):
|
|
def setupUi(self, ApodEdit):
|
|
ApodEdit.setObjectName("ApodEdit")
|
|
ApodEdit.resize(784, 484)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(ApodEdit.sizePolicy().hasHeightForWidth())
|
|
ApodEdit.setSizePolicy(sizePolicy)
|
|
self.gridLayout = QtWidgets.QGridLayout(ApodEdit)
|
|
self.gridLayout.setContentsMargins(3, 3, 3, 3)
|
|
self.gridLayout.setSpacing(3)
|
|
self.gridLayout.setObjectName("gridLayout")
|
|
self.graphicsView = PlotWidget(ApodEdit)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Expanding)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.graphicsView.sizePolicy().hasHeightForWidth())
|
|
self.graphicsView.setSizePolicy(sizePolicy)
|
|
self.graphicsView.setObjectName("graphicsView")
|
|
self.gridLayout.addWidget(self.graphicsView, 2, 0, 1, 1)
|
|
self.graphicsView_2 = PlotWidget(ApodEdit)
|
|
self.graphicsView_2.setObjectName("graphicsView_2")
|
|
self.gridLayout.addWidget(self.graphicsView_2, 2, 1, 1, 1)
|
|
self.apodcombobox = QtWidgets.QComboBox(ApodEdit)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.apodcombobox.sizePolicy().hasHeightForWidth())
|
|
self.apodcombobox.setSizePolicy(sizePolicy)
|
|
self.apodcombobox.setObjectName("apodcombobox")
|
|
self.gridLayout.addWidget(self.apodcombobox, 0, 0, 1, 1)
|
|
self.widget_layout = QtWidgets.QHBoxLayout()
|
|
self.widget_layout.setContentsMargins(-1, 6, -1, -1)
|
|
self.widget_layout.setSpacing(20)
|
|
self.widget_layout.setObjectName("widget_layout")
|
|
self.gridLayout.addLayout(self.widget_layout, 1, 0, 1, 2)
|
|
self.buttonBox = QtWidgets.QDialogButtonBox(ApodEdit)
|
|
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
|
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
|
|
self.buttonBox.setObjectName("buttonBox")
|
|
self.gridLayout.addWidget(self.buttonBox, 4, 0, 1, 2)
|
|
self.eqn_label = QtWidgets.QLabel(ApodEdit)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.eqn_label.sizePolicy().hasHeightForWidth())
|
|
self.eqn_label.setSizePolicy(sizePolicy)
|
|
self.eqn_label.setIndent(3)
|
|
self.eqn_label.setObjectName("eqn_label")
|
|
self.gridLayout.addWidget(self.eqn_label, 0, 1, 1, 1)
|
|
|
|
self.retranslateUi(ApodEdit)
|
|
self.buttonBox.accepted.connect(ApodEdit.accept)
|
|
self.buttonBox.rejected.connect(ApodEdit.close)
|
|
QtCore.QMetaObject.connectSlotsByName(ApodEdit)
|
|
|
|
def retranslateUi(self, ApodEdit):
|
|
_translate = QtCore.QCoreApplication.translate
|
|
ApodEdit.setWindowTitle(_translate("ApodEdit", "Apodization"))
|
|
self.eqn_label.setText(_translate("ApodEdit", "TextLabel"))
|
|
from pyqtgraph import PlotWidget
|