from PyQt5.QtWidgets import * class main(QWidget): def __init__(self): super().__init__() app = QApplication([]) window = main() window.show() app.exec()