31 lines
689 B
Python
31 lines
689 B
Python
from view.main_window import MainWindow
|
|
from config.settings import Settings
|
|
from core.system import FeedingControlSystem
|
|
|
|
class MainController:
|
|
def __init__(self):
|
|
# 加载配置
|
|
settings = Settings()
|
|
# 主界面
|
|
self.main_window = MainWindow()
|
|
|
|
# 初始化系统
|
|
system = FeedingControlSystem(settings)
|
|
# 系统初始化
|
|
system.initialize()
|
|
|
|
# 初始化子界面
|
|
self._initSubViews()
|
|
|
|
# 初始化子控制器
|
|
# self._initSubControllers()
|
|
|
|
|
|
# self.__connectSignals()
|
|
|
|
def showMainWindow(self):
|
|
self.main_window.show()
|
|
|
|
def _initSubViews(self):
|
|
pass
|