def __init__(self, parent=None):
QtWidgets.QFrame.__init__(self, parent)
# Layout
self.mainLayout = QtWidgets.QVBoxLayout()
# Widget
self.mainTitle = MainTitle(parent)
self.mainSeparator = QtWidgets.QWidget()
self.mainSeparator.setStyleSheet("background:#e9f0f5; margin: 10px 0 10px 0;")
self.mainSeparator.setFixedHeight(2)
self.mainContent = MainContent(self)
# Add widget
self.mainLayout.addWidget(self.mainTitle, 0)
self.mainLayout.addWidget(self.mainSeparator, 1)
self.mainLayout.addWidget(self.mainContent, 9)
self.mainLayout.setContentsMargins(0, 0, 0, 0)
self.mainLayout.setSpacing(0)
self.mainLayout.setAlignment(QtCore.Qt.AlignCenter)
# Set layout
self.setLayout(self.mainLayout)
# Stylesheet
self.setStyleSheet("background:#ffffff; border: none;")
# Main Title
BATS.py 文件源码
python
阅读 22
收藏 0
点赞 0
评论 0
评论列表
文章目录