From Wikipedia, the free encyclopedia
Jump to: navigation, search
Original author(s) Openbossa
Developer(s) Qt Project
Initial release 18 August 2009; 7 years ago (2009-08-18)[1]
Stable release
1.2.4 / 14 October 2015; 17 months ago (2015-10-14)
Written in Python
Operating system Cross-platform[which?]
License LGPL

PySide is a Python binding of the cross-platform GUI toolkit Qt. It is one of the alternatives to the standard library package Tkinter. Like Qt, PySide is free software. The project started out using Boost.Python from the Boost C++ Libraries for the bindings and later switched to the binding generator Shiboken[2] to reduce the size of the binaries and the memory footprint.

PySide was released under the LGPL in August 2009 by Nokia,[1] the former owners of the Qt toolkit, after Nokia failed to reach an agreement with PyQt developers Riverbank Computing[3] to change its licensing terms to include LGPL as an alternative license.

Work is currently underway to update PySide to work with Qt 5 under the project name PySide2[4] following an announcement[5] by The Qt Company.

PySide supports Linux/X11, Mac OS X, Windows and Maemo. Support for Android and Symbian is currently being added by the PySide community.[6]

Hello World Example[edit]

# Import PySide classes
import sys
from PySide.QtCore import *
from PySide.QtGui import *

# Create a Qt application
app = QApplication(sys.argv)

# Create a Window
mywindow = QWidget()
mywindow.resize(320, 240)
mywindow.setWindowTitle('Hello World!')

# Create a label and display it all together
mylabel = QLabel(mywindow)
mylabel.setText('Hello World!')
mylabel.setGeometry(QRect(130, 110, 60, 10))

# Enter Qt application main loop

See also[edit]


  1. ^ a b PySide has been released, August 18th, 2009 – PySide – Python for Qt. Archived October 25, 2009, at the Wayback Machine.
  2. ^ "Shiboken". Retrieved 2016-09-06. 
  3. ^ "FAQ – PySide – Python for Qt". Retrieved 2015-05-04. 
  4. ^ "PySide2 - Qt Wiki". 
  5. ^ "Bringing pyside back to Qt Project". 
  6. ^ "Which platforms is PySide available for? FAQ – PySide – Python for Qt". Retrieved 2015-05-04. 

External links[edit]