main.py 843 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python
  2. # -*- encoding: utf-8 -*-
  3. from ui.own.frame_theme import MyFrame
  4. from ui.main.top_page import TopPage
  5. from ui.main.center_page import CenterPage
  6. from ui.main.under_page import UnderPage
  7. from utils.qt import QMetaObject, QVBoxLayout
  8. class Main(MyFrame):
  9. def setupUi(self, Main):
  10. self.main = MyFrame(Main)
  11. self.main_layout = QVBoxLayout(self.main)
  12. self.main_layout.setContentsMargins(0, 0, 0, 0)
  13. self.main_layout.setSpacing(0)
  14. self.top_widget = TopPage(self.main)
  15. self.main_layout.addWidget(self.top_widget)
  16. self.center_widget = CenterPage(self.main)
  17. self.main_layout.addWidget(self.center_widget)
  18. self.under_widget = UnderPage(self.main)
  19. self.main_layout.addWidget(self.under_widget)
  20. QMetaObject.connectSlotsByName(Main)