Browse Source

fix bug changed test in btn start cam

Алексей Сидоров 1 year ago
parent
commit
57f6afb8f4
1 changed files with 10 additions and 0 deletions
  1. 10 0
      window/MainWindow.py

+ 10 - 0
window/MainWindow.py

@@ -309,3 +309,13 @@ class MainWindow(QMainWindow, Ui_MainWindow):
             obj=self.tab,
             obj=self.tab,
             layout=self.gridLayout,
             layout=self.gridLayout,
             mode=self.__mode)
             mode=self.__mode)
+        
+        self.stacked_face.currentChanged.connect(
+            self.__change_text_btn
+        )
+    
+    def __change_text_btn(self) -> None:
+        if self.stacked_face.currentIndex() == 0:
+            self.btn_start_cam.setText(stop_cam)
+        else:
+            self.btn_start_cam.setText(start_cam)