import sys from PyQt5.QtWidgets import QApplication, QMainWindow from PyQt5.QtWidgets import QLabel class MainWindow(QMainWindow): def __init__(self): super().__init__() helloLabel = QLabel(self) helloLabel.setText('Működik') helloLabel.move(120, 90) self.setGeometry(100,100,320,200) self.setWindowTitle('Helló Világ') self.show() if __name__ == '__main__': app = QApplication(sys.argv) mainWindow = MainWindow() sys.exit(app.exec_())