app = QApplication(sys.argv) window = DemoWindow() window.show() sys.exit(app.exec())

Now that you understand the building blocks, try building a simple . It will force you to use QLineEdit (input), QPushButton (add), QListWidget (display list), and QVBoxLayout (arrangement).

if __name__ == "__main__": main()

Widgets are useless if they don't do anything. PyQt6 uses a mechanism called .

Never set fixed coordinates ( move(x, y) ) unless absolutely necessary. Always use layouts.