use tabs for plots
This commit is contained in:
parent
97497e640e
commit
67ddbb0f90
|
@ -21,6 +21,7 @@ from PySide6.QtWidgets import (
|
|||
QMainWindow,
|
||||
QMenu,
|
||||
QProgressBar,
|
||||
QTabWidget,
|
||||
QVBoxLayout,
|
||||
QWidget,
|
||||
)
|
||||
|
@ -108,20 +109,16 @@ class MainWindow(QMainWindow):
|
|||
window_layout.addWidget(prog_sweep)
|
||||
self.prog_sweep = prog_sweep
|
||||
|
||||
# window_widget.se
|
||||
plot_layout = QVBoxLayout()
|
||||
# TODO: handle plots properly
|
||||
plot_widget = QTabWidget()
|
||||
self.plots = []
|
||||
for type_ in [
|
||||
"logmag",
|
||||
"phase",
|
||||
# "vswr",
|
||||
# "smith",
|
||||
"vswr",
|
||||
"smith",
|
||||
]:
|
||||
self.plots.append(PlotWidget(type_=type_))
|
||||
plot_layout.addWidget(self.plots[-1])
|
||||
plot_widget = QWidget()
|
||||
plot_widget.setLayout(plot_layout)
|
||||
plot_widget.addTab(self.plots[-1], type_)
|
||||
window_layout.addWidget(plot_widget)
|
||||
|
||||
# Set the central widget of the Window.
|
||||
|
|
Loading…
Reference in New Issue
Block a user