Files
Feeding_control_system/controller/main_controller.py

35 lines
953 B
Python
Raw Normal View History

2025-10-18 18:29:40 +08:00
from view.main_window import MainWindow
2025-10-31 18:52:31 +08:00
from .camera_controller import CameraController
from .bottom_control_controller import BottomControlController
2025-10-18 18:29:40 +08:00
class MainController:
def __init__(self):
# 主界面
self.main_window = MainWindow()
# 初始化子界面
self._initSubViews()
# 初始化子控制器
2025-10-31 18:52:31 +08:00
self._initSubControllers()
2025-10-18 18:29:40 +08:00
# self.__connectSignals()
def showMainWindow(self):
self.main_window.show()
2025-10-31 18:52:31 +08:00
def _initSubControllers(self):
# 振捣视频控制
self.camera_controller = CameraController(
video_view=self.main_window.vibration_video
)
# 底部控制(按钮)控制器
self.bottom_control_controller = BottomControlController(
bottom_control_widget=self.main_window.bottom_control_widget,
main_window=self.main_window
)
2025-10-18 18:29:40 +08:00
def _initSubViews(self):
2025-10-31 18:52:31 +08:00
pass