# coding: gb2312 from PyQt5.QtWidgets import * from LSZXPagesLibrary.running_test_page_widget_define import RunningTestPageWidgetDefine class RunningTestPageLayoutDefine(RunningTestPageWidgetDefine): def __init__(self): super().__init__() """**布局定义**布局定义**布局定义**布局定义**布局定义**布局定义**布局定义**布局定义**布局定义**布局定义**布局定义""" self.title_layout = QHBoxLayout() self.title_layout.addWidget(self.title_label, 81) self.title_layout.addWidget(self.back_home_button, 18) self.title_layout.addWidget(self.empty_box, 1) # 绘制一条直线 self.line_layout = QVBoxLayout() self.line_layout.addWidget(self.line_widget) self.line_layout.setContentsMargins(0, 20, 0, 20) # 实时画面布局 self.realtime_layout = self.realtime_widget.get_layout() # 底面布局 self.bottom_layout = QHBoxLayout() self.bottom_layout.addWidget(self.empty_box, 20) self.bottom_layout.addWidget(self.stop_button, 60) self.bottom_layout.addWidget(self.empty_box, 15) self.bottom_layout.addWidget(self.logo_label, 5) """**总布局定义**总布局定义**总布局定义**总布局定义**总布局定义**总布局定义**总布局定义**总布局定义**总布局定义""" # 总布局定义 self.layout = QVBoxLayout() self.layout.addLayout(self.title_layout, 5) self.layout.addLayout(self.line_layout) self.layout.addLayout(self.realtime_layout, 85) self.layout.addLayout(self.bottom_layout, 10) self.setLayout(self.layout)