3737"""
3838
3939import sys
40- from PyQt5 .QtWidgets import QDialog , QApplication , QLabel , QRadioButton , QSlider , QPushButton , QVBoxLayout , QHBoxLayout , QFormLayout , QFileDialog , QLineEdit , QSpinBox , QDoubleSpinBox , QMessageBox , QCheckBox , QTableWidget , QTableWidgetItem , QHeaderView , QGroupBox , QComboBox
40+ from PyQt5 .QtWidgets import QDialog , QApplication , QLabel , QRadioButton , QSlider , QPushButton , QVBoxLayout , QHBoxLayout , QFormLayout , QFileDialog , QLineEdit , QSpinBox , QDoubleSpinBox , QMessageBox , QCheckBox , QTableWidget , QTableWidgetItem , QHeaderView , QGroupBox , QComboBox , QTabWidget , QWidget
4141from PyQt5 .QtCore import Qt
4242
4343from matplotlib .backends .backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
@@ -158,11 +158,15 @@ def __init__(self, parent=None):
158158 left_menu .addLayout (offset_group )
159159 left_menu .addStretch (1 )
160160
161- layout_gmvc = self .createGmvcLayout ()
162- layout_pid = self .createPidLayout ()
163- layout_controller = QHBoxLayout ()
164- layout_controller .addLayout (layout_gmvc )
165- layout_controller .addLayout (layout_pid )
161+ self .tuning_tabs = QTabWidget ()
162+
163+ self .tab_pid = QWidget ()
164+ self .tab_pid .setLayout (self .createPidLayout ())
165+ self .tuning_tabs .addTab (self .tab_pid , "PID" )
166+
167+ self .tab_gmvc = QWidget ()
168+ self .tab_gmvc .setLayout (self .createGmvcLayout ())
169+ self .tuning_tabs .addTab (self .tab_gmvc , "GMVC" )
166170
167171 layout_plot = QVBoxLayout ()
168172 layout_h .addLayout (left_menu )
@@ -172,7 +176,7 @@ def __init__(self, parent=None):
172176 layout_plot .addWidget (self .canvas )
173177 layout_v .addLayout (layout_h )
174178 layout_v .setStretch (0 ,1 )
175- layout_v .addLayout ( layout_controller )
179+ layout_v .addWidget ( self . tuning_tabs )
176180 self .setLayout (layout_v )
177181
178182 def reset (self ):
0 commit comments