| PySide | |
|---|---|
![]() | |
| Original author | The Qt Company (as part ofNokia) |
| Developer | The Qt Company |
| Initial release | August 18, 2009; 16 years ago (2009-08-18)[1] |
| Stable release | |
| Written in | Python |
| Operating system | Linux/X11,macOS,Windows |
| License | LGPL |
| Website | pyside |
PySide is aPythonbinding of thecross-platformGUI toolkitQt developed byThe Qt Company, as part of theQt for Python project. It is one of thealternatives to the standard library packageTkinter. Like Qt, PySide isfree software. PySide supportsLinux/X11,macOS, andMicrosoft Windows. The project can also be cross compiled to embedded systems like Raspberry Pi,[3][4] and Android devices.[5]
By 2009,Nokia, the then owners of the Qt toolkit, wanted Python binding available under theLGPL license. Nokia failed to reach an agreement with Riverbank Computing, the developers of thePyQt Python binding.[6] In August, Nokia released PySide. It provided similar functionality, but under the LGPL.[7][8] 'Side' is Finnish for binding.[6]
There have been three major versions of PySide:[9]
PySide version 1 was released in August 2009 under theLGPL byNokia,[1] then the owner of the Qt toolkit, after it failed to reach an agreement withPyQt developers Riverbank Computing[10] to change its licensing terms to includeLGPL as an alternative license. It supported Qt 4 under the operating systems Linux/X11, Mac OS X, Microsoft Windows,Maemo andMeeGo,[11] while the PySide community added support forAndroid.[12]
PySide2 was started by Christian Tismer to port PySide from Qt 4 to Qt 5 in 2015.[13] The project was then folded into the Qt Project.[14] It was released in December 2018.[13]
PySide6 was released in December 2020. It added support for Qt 6 and removed support for all Python versions older than 3.6.[9]
The project started out using Boost. Python from theBoost C++ libraries for the bindings. It later created its own binding generator named Shiboken,[15] to reduce the size of the binaries and thememory footprint.[16][when?]
importsysfromPySide6importQtCore,QtWidgets# Create a Qt applicationapp=QtWidgets.QApplication(sys.argv)# Create the main windowmain_window=QtWidgets.QWidget()main_window.resize(320,240)main_window.setWindowTitle('"Hello, world!" example')# Create a label for text in the main windowlabel=QtWidgets.QLabel(main_window)label.setText("Hello, world!")label.setGeometry(QtCore.QRect(100,100,100,100))# Show the main windowmain_window.show()# Enter the main loop and exit when donesys.exit(app.exec())
{{cite web}}:|first= has generic name (help)Thisfree and open-source software article is astub. You can help Wikipedia byexpanding it. |