-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinterface_ui.py
137 lines (130 loc) · 7.98 KB
/
interface_ui.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
126
127
128
129
130
131
132
133
134
135
136
137
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'c:\Users\marce\Documents\GitHub\fdbpm-python\interface.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(902, 835)
MainWindow.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
MainWindow.setWindowTitle("FDBPM")
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icon/beampy-logo.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
MainWindow.setAutoFillBackground(False)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout_4 = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout_4.setObjectName("gridLayout_4")
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.label_slider = QtWidgets.QLabel(self.centralwidget)
self.label_slider.setMaximumSize(QtCore.QSize(16777215, 40))
self.label_slider.setObjectName("label_slider")
self.horizontalLayout.addWidget(self.label_slider)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem1)
self.verticalLayout.addLayout(self.horizontalLayout)
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
spacerItem2 = QtWidgets.QSpacerItem(67, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(spacerItem2)
self.SliderPos = QtWidgets.QSlider(self.centralwidget)
self.SliderPos.setCursor(QtGui.QCursor(QtCore.Qt.SplitHCursor))
self.SliderPos.setOrientation(QtCore.Qt.Horizontal)
self.SliderPos.setTickPosition(QtWidgets.QSlider.TicksBelow)
self.SliderPos.setObjectName("SliderPos")
self.horizontalLayout_3.addWidget(self.SliderPos)
spacerItem3 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(spacerItem3)
self.verticalLayout.addLayout(self.horizontalLayout_3)
self.gridLayout_2 = QtWidgets.QGridLayout()
self.gridLayout_2.setObjectName("gridLayout_2")
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_2.addItem(spacerItem4, 0, 2, 1, 1)
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setObjectName("label")
self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)
self.spinBox_propLength = QtWidgets.QSpinBox(self.centralwidget)
self.spinBox_propLength.setMaximum(10000000)
self.spinBox_propLength.setObjectName("spinBox_propLength")
self.gridLayout_2.addWidget(self.spinBox_propLength, 1, 1, 1, 1)
self.doubleSpinBox_lambda = QtWidgets.QDoubleSpinBox(self.centralwidget)
self.doubleSpinBox_lambda.setMaximum(1000000.0)
self.doubleSpinBox_lambda.setObjectName("doubleSpinBox_lambda")
self.gridLayout_2.addWidget(self.doubleSpinBox_lambda, 0, 1, 1, 1)
self.label_4 = QtWidgets.QLabel(self.centralwidget)
self.label_4.setObjectName("label_4")
self.gridLayout_2.addWidget(self.label_4, 0, 3, 1, 1)
spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_2.addItem(spacerItem5, 0, 5, 1, 1)
self.label_3 = QtWidgets.QLabel(self.centralwidget)
self.label_3.setObjectName("label_3")
self.gridLayout_2.addWidget(self.label_3, 1, 0, 1, 1)
self.spinBox_windowSize = QtWidgets.QSpinBox(self.centralwidget)
self.spinBox_windowSize.setMaximum(1000000)
self.spinBox_windowSize.setObjectName("spinBox_windowSize")
self.gridLayout_2.addWidget(self.spinBox_windowSize, 0, 4, 1, 1)
self.label_5 = QtWidgets.QLabel(self.centralwidget)
self.label_5.setObjectName("label_5")
self.gridLayout_2.addWidget(self.label_5, 1, 3, 1, 1)
self.spinBox_numSamples = QtWidgets.QSpinBox(self.centralwidget)
self.spinBox_numSamples.setMaximum(1000)
self.spinBox_numSamples.setObjectName("spinBox_numSamples")
self.gridLayout_2.addWidget(self.spinBox_numSamples, 1, 4, 1, 1)
self.verticalLayout.addLayout(self.gridLayout_2)
self.pushButton = QtWidgets.QPushButton(self.centralwidget)
self.pushButton.setObjectName("pushButton")
self.verticalLayout.addWidget(self.pushButton)
self.gridLayout_4.addLayout(self.verticalLayout, 1, 0, 1, 1)
self.MplWidget = MplWidget(self.centralwidget)
self.MplWidget.setMinimumSize(QtCore.QSize(0, 600))
self.MplWidget.setObjectName("MplWidget")
self.gridLayout_4.addWidget(self.MplWidget, 0, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 902, 22))
self.menubar.setNativeMenuBar(False)
self.menubar.setObjectName("menubar")
self.menuLoad_Examples = QtWidgets.QMenu(self.menubar)
self.menuLoad_Examples.setObjectName("menuLoad_Examples")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.actionFree_Space_Propagation = QtWidgets.QAction(MainWindow)
self.actionFree_Space_Propagation.setObjectName("actionFree_Space_Propagation")
self.actionOne_Waveguide = QtWidgets.QAction(MainWindow)
self.actionOne_Waveguide.setObjectName("actionOne_Waveguide")
self.actionThree_Waveguides = QtWidgets.QAction(MainWindow)
self.actionThree_Waveguides.setObjectName("actionThree_Waveguides")
self.menuLoad_Examples.addAction(self.actionFree_Space_Propagation)
self.menuLoad_Examples.addAction(self.actionOne_Waveguide)
self.menuLoad_Examples.addAction(self.actionThree_Waveguides)
self.menubar.addAction(self.menuLoad_Examples.menuAction())
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
self.label_slider.setText(_translate("MainWindow", "0"))
self.label.setText(_translate("MainWindow", "Lambda"))
self.spinBox_propLength.setSuffix(_translate("MainWindow", " um"))
self.doubleSpinBox_lambda.setSuffix(_translate("MainWindow", " um"))
self.label_4.setText(_translate("MainWindow", "Window x size"))
self.label_3.setText(_translate("MainWindow", "Propagation Length"))
self.spinBox_windowSize.setSuffix(_translate("MainWindow", " um"))
self.label_5.setText(_translate("MainWindow", "Number of Samples"))
self.pushButton.setText(_translate("MainWindow", "Recalculate with new parameters"))
self.menuLoad_Examples.setTitle(_translate("MainWindow", "Load Examples"))
self.actionFree_Space_Propagation.setText(_translate("MainWindow", "Free Space Propagation"))
self.actionOne_Waveguide.setText(_translate("MainWindow", "One Waveguide"))
self.actionThree_Waveguides.setText(_translate("MainWindow", "Three Waveguides"))
from easy_gui import MplWidget