8d148b639b
change to src layout
97 lines
5.2 KiB
Python
97 lines
5.2 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Form implementation generated from reading ui file 'resources/_ui/meandialog.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_calc_means_dialog(object):
|
|
def setupUi(self, calc_means_dialog):
|
|
calc_means_dialog.setObjectName("calc_means_dialog")
|
|
calc_means_dialog.resize(481, 322)
|
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(calc_means_dialog)
|
|
self.verticalLayout_2.setSpacing(3)
|
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
|
self.dist_combobox = QtWidgets.QComboBox(calc_means_dialog)
|
|
self.dist_combobox.setObjectName("dist_combobox")
|
|
self.verticalLayout_2.addWidget(self.dist_combobox)
|
|
self.verticalLayout = QtWidgets.QVBoxLayout()
|
|
self.verticalLayout.setObjectName("verticalLayout")
|
|
self.verticalLayout_2.addLayout(self.verticalLayout)
|
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
|
self.from_combobox = QtWidgets.QComboBox(calc_means_dialog)
|
|
self.from_combobox.setObjectName("from_combobox")
|
|
self.from_combobox.addItem("")
|
|
self.from_combobox.addItem("")
|
|
self.from_combobox.addItem("")
|
|
self.from_combobox.addItem("")
|
|
self.horizontalLayout.addWidget(self.from_combobox)
|
|
self.label_4 = QtWidgets.QLabel(calc_means_dialog)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Maximum)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
|
|
self.label_4.setSizePolicy(sizePolicy)
|
|
font = QtGui.QFont()
|
|
font.setPointSize(20)
|
|
self.label_4.setFont(font)
|
|
self.label_4.setObjectName("label_4")
|
|
self.horizontalLayout.addWidget(self.label_4)
|
|
self.to_combobox = QtWidgets.QComboBox(calc_means_dialog)
|
|
self.to_combobox.setObjectName("to_combobox")
|
|
self.to_combobox.addItem("")
|
|
self.to_combobox.addItem("")
|
|
self.to_combobox.addItem("")
|
|
self.to_combobox.addItem("")
|
|
self.horizontalLayout.addWidget(self.to_combobox)
|
|
self.verticalLayout_2.addLayout(self.horizontalLayout)
|
|
self.line = QtWidgets.QFrame(calc_means_dialog)
|
|
self.line.setFrameShape(QtWidgets.QFrame.HLine)
|
|
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
|
|
self.line.setObjectName("line")
|
|
self.verticalLayout_2.addWidget(self.line)
|
|
self.label = QtWidgets.QLabel(calc_means_dialog)
|
|
self.label.setObjectName("label")
|
|
self.verticalLayout_2.addWidget(self.label)
|
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
|
|
self.verticalLayout_2.addItem(spacerItem)
|
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
|
self.horizontalLayout_2.setContentsMargins(-1, 0, -1, -1)
|
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
|
self.checkBox = QtWidgets.QCheckBox(calc_means_dialog)
|
|
self.checkBox.setObjectName("checkBox")
|
|
self.horizontalLayout_2.addWidget(self.checkBox)
|
|
self.graph_combobox = QtWidgets.QComboBox(calc_means_dialog)
|
|
self.graph_combobox.setObjectName("graph_combobox")
|
|
self.horizontalLayout_2.addWidget(self.graph_combobox)
|
|
self.verticalLayout_2.addLayout(self.horizontalLayout_2)
|
|
self.buttonBox = QtWidgets.QDialogButtonBox(calc_means_dialog)
|
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Apply|QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
|
|
self.buttonBox.setObjectName("buttonBox")
|
|
self.verticalLayout_2.addWidget(self.buttonBox)
|
|
|
|
self.retranslateUi(calc_means_dialog)
|
|
self.to_combobox.setCurrentIndex(1)
|
|
QtCore.QMetaObject.connectSlotsByName(calc_means_dialog)
|
|
|
|
def retranslateUi(self, calc_means_dialog):
|
|
_translate = QtCore.QCoreApplication.translate
|
|
calc_means_dialog.setWindowTitle(_translate("calc_means_dialog", "Mean times"))
|
|
self.from_combobox.setItemText(0, _translate("calc_means_dialog", "Function value: τ"))
|
|
self.from_combobox.setItemText(1, _translate("calc_means_dialog", "Peak time: τₚ"))
|
|
self.from_combobox.setItemText(2, _translate("calc_means_dialog", "Arithmetic mean: ⟨τ⟩"))
|
|
self.from_combobox.setItemText(3, _translate("calc_means_dialog", "Geometric mean: exp( ⟨ln(τ)⟩ )"))
|
|
self.label_4.setText(_translate("calc_means_dialog", " ➝ "))
|
|
self.to_combobox.setItemText(0, _translate("calc_means_dialog", "Function value: τ"))
|
|
self.to_combobox.setItemText(1, _translate("calc_means_dialog", "Peak time: τₚ"))
|
|
self.to_combobox.setItemText(2, _translate("calc_means_dialog", "Arithmetic mean: ⟨τ⟩"))
|
|
self.to_combobox.setItemText(3, _translate("calc_means_dialog", "Geometric mean: exp( ⟨ln(τ)⟩ )"))
|
|
self.label.setText(_translate("calc_means_dialog", "TextLabel"))
|
|
self.checkBox.setText(_translate("calc_means_dialog", "New graph"))
|