import sys from PyQt5.QtWidgets import QApplication, QComboBox, QMainWindow from PyQt5.QtWidgets import QComboBox class MainWindow(QMainWindow): def __init__(self): super().__init__() combo = QComboBox(self) combo.move(50, 50) combo.addItem('Alma') combo.addItem('Körte') combo.addItem('Barack') combo.addItem('Szilva') self.setGeometry(100, 100, 320, 200) self.show() if __name__ == '__main__': app = QApplication(sys.argv) mainWindow = MainWindow() sys.exit(app.exec_())