Tuesday, December 31, 2013

Install PySide for Python 3 on Raspberry Pi

Enter the command to install PySide for Python 3:

$ sudo apt-get install python3-pyside

In Python 3, or IDLE3, enter:

import PySide

If no error reported, means PySide installed successfully. To check the installed version of PySide, enter:

PySide.__version__

Enter "Hello World" of Python 3 with PySide.
#!/usr/bin/python3

import sys
from PySide.QtCore import *
from PySide.QtGui import *

app = QApplication(sys.argv)
label=QLabel("Hello World")
label.show()
app.exec_()
sys.exit()

PySide for Python 3
PySide for Python 3




Related: Install PySide for Python 2 on Raspberry Pi

No comments: