#!/usr/bin/env python import sys from PyQt5.QtWidgets import (QApplication, QCheckBox, QDialog, QGroupBox, QLabel, QPushButton, QVBoxLayout) class TestApp(QDialog): def __init__(self, parent=None): super(TestApp, self).__init__(parent) checkboxesGroup = QGroupBox("Permissions") checkbox1 = QCheckBox("Checkbox one") checkbox2 = QCheckBox("Checkbox two") checkbox3 = QCheckBox("Checkbox three") checkbox4 = QCheckBox("Checkbox four") button1 = QPushButton("button1") button2 = QPushButton("button2") button3 = QPushButton("button3") button4 = QPushButton("button4") checkboxesLayout = QVBoxLayout() checkboxesLayout.addWidget(checkbox1) checkboxesLayout.addWidget(checkbox2) checkboxesLayout.addWidget(checkbox3) checkboxesLayout.addWidget(checkbox4) checkboxesLayout.addWidget(button1) checkboxesLayout.addWidget(button2) checkboxesLayout.addWidget(button3) checkboxesLayout.addWidget(button4) checkboxesGroup.setLayout(checkboxesLayout) mainLayout = QVBoxLayout() mainLayout.addWidget(checkboxesGroup) self.setLayout(mainLayout) self.setWindowTitle("sample test for orca") if __name__ == '__main__': app = QApplication(sys.argv) dialog = TestApp() dialog.show() sys.exit(app.exec_())