def __init__(self, parent=None):
QtWidgets.QFrame.__init__(self, parent)
# No title bar, but keep the frame
# self.setWindowFlags(QtCore.Qt.CustomizeWindowHint)
# Set position of the frame
self.screen = QtWidgets.QDesktopWidget().screenGeometry()
# Set geometry
self.setGeometry(self.screen.width()/8, 50, 1600, 900)
self.setMinimumSize(0, 0)
# Set Widgets
self.sideWindow = SideFrame(self)
self.mainWindow = MainFrame(self)
# Set Layout
self.appLayout = QtWidgets.QHBoxLayout()
self.appLayout.addWidget(self.sideWindow, 2)
self.appLayout.addWidget(self.mainWindow, 8)
# Add layout
self.appLayout.setContentsMargins(0, 0, 0, 0)
self.appLayout.setSpacing(0)
self.setLayout(self.appLayout)
self.setWindowTitle("Bayesian Adaptive Trial Simulator")
# Close the application
BATS.py 文件源码
python
阅读 29
收藏 0
点赞 0
评论 0
评论列表
文章目录