diff --git a/charon_vna/gui.py b/charon_vna/gui.py index 31f265c..6ac734a 100644 --- a/charon_vna/gui.py +++ b/charon_vna/gui.py @@ -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.