PySide


PySide2 is a Python binding of the cross-platform GUI toolkit Qt, currently developed by The Qt Company under the Qt for Python project on porting PySide to work with Qt 5 instead of Qt 4. It is one of the alternatives to the standard library package Tkinter. Like Qt, PySide2 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 to reduce the size of the binaries and the memory footprint.
PySide was released under the LGPL in August 2009 by Nokia, the former owners of the Qt toolkit, after Nokia failed to reach an agreement with PyQt developers Riverbank Computing to change its licensing terms to include LGPL as an alternative license.
Work is currently underway to officially launch PySide2 as a Qt product. PySide2 supports Linux/X11, Mac OS X, Windows and Maemo. Support for Android is currently being added by the PySide community.

Hello World example


  1. Import PySide2 classes
import sys
from PySide2 import QtCore, QtWidgets
  1. Create a Qt application
app = QtWidgets.QApplication
  1. Create a Window
mywindow = QtWidgets.QWidget
mywindow.resize
mywindow.setWindowTitle
  1. Create a label and display it all together
mylabel = QtWidgets.QLabel
mylabel.setText
mylabel.setGeometry
mywindow.show
  1. Enter Qt application main loop
sys.exit)