from PyQt5.QtWidgets import QWidget, QVBoxLayout, QLabel class AboutWidget(QWidget): def __init__(self, typex="init"): super().__init__() self.base = QVBoxLayout() self.base.addWidget(QLabel("About")) self.setLayout(self.base)