PySide

PySide
Original author(s) Openbossa
Developer(s) Qt Project
Initial release 18 August 2009 (2009-08-18)[1]
Stable release
1.2.4 / 14 October 2015 (2015-10-14)
Written in Python
Operating system Cross-platform
License LGPL
Website www.pyside.org

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

# 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))
mywindow.show()

# Enter Qt application main loop
sys.exit(app.exec_())

See also

Wikimedia Commons has media related to PySide.

References

  1. 1 2 PySide has been released, August 18th, 2009 – PySide – Python for Qt. Archived October 25, 2009, at the Wayback Machine.
  2. "Shiboken". qt.io. Retrieved 2016-09-06.
  3. "FAQ – PySide – Python for Qt". Pyside.org. 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". Pyside.org. Retrieved 2015-05-04.


This article is issued from Wikipedia - version of the 11/18/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.