from PyQt5 import QtWidgets app = QtWidgets.QApplication([]) window = QtWidgets.QWidget(windowTitle='Hello Qt') window.show() app.exec()