main.py 985 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/usr/bin/env python
  2. # -*- encoding: utf-8 -*-
  3. '''
  4. @文件 :main.py
  5. @时间 :2023/11/26 16:04:21
  6. @作者 :樊春春
  7. @版本 :1.0
  8. @邮箱 :[email protected]
  9. @说明 :
  10. '''
  11. from ui.own.frame_theme import MyFrame
  12. from ui.main.top_page import TopPage
  13. from ui.main.center_page import CenterPage
  14. from ui.main.under_page import UnderPage
  15. from utils.qt import QMetaObject, QVBoxLayout
  16. class Main(MyFrame):
  17. def setupUi(self, Main):
  18. self.main = MyFrame(Main)
  19. self.main_layout = QVBoxLayout(self.main)
  20. self.main_layout.setContentsMargins(0, 0, 0, 0)
  21. self.main_layout.setSpacing(0)
  22. self.top_widget = TopPage(self.main)
  23. self.main_layout.addWidget(self.top_widget)
  24. self.center_widget = CenterPage(self.main)
  25. self.main_layout.addWidget(self.center_widget)
  26. self.under_widget = UnderPage(self.main)
  27. self.main_layout.addWidget(self.under_widget)
  28. QMetaObject.connectSlotsByName(Main)