def createTypeGroupBox(self):
self.typeGroupBox = QGroupBox("Type")
self.windowRadioButton = self.createRadioButton("Window")
self.dialogRadioButton = self.createRadioButton("Dialog")
self.sheetRadioButton = self.createRadioButton("Sheet")
self.drawerRadioButton = self.createRadioButton("Drawer")
self.popupRadioButton = self.createRadioButton("Popup")
self.toolRadioButton = self.createRadioButton("Tool")
self.toolTipRadioButton = self.createRadioButton("Tooltip")
self.splashScreenRadioButton = self.createRadioButton("Splash screen")
self.windowRadioButton.setChecked(True)
layout = QGridLayout()
layout.addWidget(self.windowRadioButton, 0, 0)
layout.addWidget(self.dialogRadioButton, 1, 0)
layout.addWidget(self.sheetRadioButton, 2, 0)
layout.addWidget(self.drawerRadioButton, 3, 0)
layout.addWidget(self.popupRadioButton, 0, 1)
layout.addWidget(self.toolRadioButton, 1, 1)
layout.addWidget(self.toolTipRadioButton, 2, 1)
layout.addWidget(self.splashScreenRadioButton, 3, 1)
self.typeGroupBox.setLayout(layout)
评论列表
文章目录