{"library":"pyside2","title":"PySide2","description":"PySide2 provides the official Python bindings for the Qt cross-platform application and UI framework, specifically for Qt5. It enables Python developers to create robust desktop graphical user interfaces. As of version 5.15.2.1, PySide2 is primarily in maintenance mode, with active development having shifted to PySide6 for Qt6. Releases are less frequent now compared to PySide6.","language":"python","status":"maintenance","last_verified":"Thu Apr 16","install":{"commands":["pip install pyside2"],"cli":null},"imports":["from PySide2.QtWidgets import QApplication, QWidget","from PySide2 import QtCore, QtGui, QtWidgets"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import sys\nfrom PySide2.QtWidgets import QApplication, QWidget, QLabel\n\nif __name__ == '__main__':\n    app = QApplication(sys.argv)\n\n    # Create a Qt widget, which will be our window.\n    window = QWidget()\n    window.setWindowTitle('Hello PySide2')\n    window.setGeometry(100, 100, 280, 80)\n\n    # Create a label and set its text\n    label = QLabel('Hello, PySide2 World!', parent=window)\n    label.move(60, 30)\n\n    window.show()  # IMPORTANT!!!!! Windows are hidden by default.\n\n    sys.exit(app.exec_()) # Start the event loop.","lang":"python","description":"This quickstart code creates a basic PySide2 application that displays a window with a 'Hello, PySide2 World!' label. It demonstrates the fundamental steps: creating a QApplication instance, a QWidget as the main window, adding a QLabel, and starting the application's event loop using `app.exec_()` to keep the window open.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}