MyTetra Share
Делитесь знаниями!
Установка PyQt4 на Linux
Время создания: 06.10.2017 20:09
Раздел: Python - PyQt4
Запись: xintrea/mytetra_db_mcold/master/base/1507309760yei0uznm6o/text.html на raw.githubusercontent.com

How to install pyqt4 on ubuntu linux



apt-cache search pyqt


sudo apt-get install python-qt4


Create a file ~/tmp/helloworld.py


import sys

from PyQt4.QtGui import *

app = QApplication(sys.argv)

button = QPushButton("Hello World", None)

button.show()

app.exec_()


Run it:


python ~/tmp/helloworld.py


You should see a window with a single button pop up.


Install additional examples

For more examples, install the python-qt4-doc package:


sudo apt-get install python-qt4-doc


After installation, the examples are located at:


/usr/share/doc/python-qt4-doc/examples


 
MyTetra Share v.0.58
Яндекс индекс цитирования