Files
Feeding_control_system/controller/main_controller.py
2025-10-31 18:52:35 +08:00

35 lines
953 B
Python

from view.main_window import MainWindow
from .camera_controller import CameraController
from .bottom_control_controller import BottomControlController
class MainController:
def __init__(self):
# 主界面
self.main_window = MainWindow()
# 初始化子界面
self._initSubViews()
# 初始化子控制器
self._initSubControllers()
# self.__connectSignals()
def showMainWindow(self):
self.main_window.show()
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
)
def _initSubViews(self):
pass