BATS.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:BATS-Bayesian-Adaptive-Trial-Simulator 作者: ContaTP 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号