update 更新变切控制

This commit is contained in:
FrankCV2048
2024-10-30 23:22:07 +08:00
parent da0863308c
commit 1bfe95ddcb
2 changed files with 7 additions and 6 deletions

View File

@ -907,7 +907,7 @@ background-color: rgb(13, 17, 40);</string>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>1</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="page_3"> <widget class="QWidget" name="page_3">
<layout class="QVBoxLayout" name="verticalLayout_7" stretch="1"> <layout class="QVBoxLayout" name="verticalLayout_7" stretch="1">

11
main.py
View File

@ -237,9 +237,10 @@ class MainWindow(QMainWindow, Ui_MainWindow):
self.pushButton_sysseting.clicked.connect(self.send_click_sysmeuExpand) self.pushButton_sysseting.clicked.connect(self.send_click_sysmeuExpand)
self.pushButton_leftmenu_produce.clicked.connect(lambda _, index=0: self.send_click_change_stackView(index)) self.pushButton_leftmenu_produce.clicked.connect(lambda _, index=0: self.send_click_change_stackView(index))
self.pushButton_leftmenu_position.clicked.connect(lambda _, index=1: self.send_click_change_stackView(index)) self.pushButton_leftmenu_IO.clicked.connect(lambda _, index=1: self.send_click_change_stackView(index))
self.pushButton_leftmenu_baseSeting.clicked.connect(lambda _, index=2: self.send_click_change_stackView(index)) self.pushButton_leftmenu_position.clicked.connect(lambda _, index=2: self.send_click_change_stackView(index))
self.pushButton_leftmenu_posDebug.clicked.connect(lambda _, index=3: self.send_click_change_stackView(index)) self.pushButton_leftmenu_baseSeting.clicked.connect(lambda _, index=3: self.send_click_change_stackView(index))
self.pushButton_leftmenu_posDebug.clicked.connect(lambda _, index=4: self.send_click_change_stackView(index))
self.pushButton_exit.clicked.connect(self.send_exit_button_click) self.pushButton_exit.clicked.connect(self.send_exit_button_click)
@ -1405,9 +1406,9 @@ class MainWindow(QMainWindow, Ui_MainWindow):
self.stackedWidget_view.setCurrentIndex(index) self.stackedWidget_view.setCurrentIndex(index)
if index == 0: if index == 0:
self.updateUI_Select_Line() self.updateUI_Select_Line()
if index == 1:
self.updateUI_Photo_Set()
if index == 2: if index == 2:
self.updateUI_Photo_Set()
if index == 3:
self.updateUI_Base_Set() self.updateUI_Base_Set()
def send_exit_button_click(self): def send_exit_button_click(self):