How to install pyqt4 on ubuntu
来源:互联网 发布:apache benchmark 编辑:程序博客网 时间:2024/06/05 23:06
Install and run "hello world" example
apt-cache search pyqt
sudo apt-get install python-qt4
- Create a file
~/tmp/helloworld.py
import sysfrom 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
- How to install pyqt4 on ubuntu
- How to Install PyQt4 on OS X
- How to Install Fonts on Ubuntu
- How to install gCvs on ubuntu 10.04
- How to install p2psim on ubuntu.10.10
- How to install chrome on Ubuntu 10.10
- how to install software on ubuntu?
- How to install GSL on linux(ubuntu)
- How to install VNC on Ubuntu
- How to install flash plugin on Ubuntu
- How to install mongoDB on Ubuntu
- How to install deb packages on Ubuntu
- How to install SmartSVN on Ubuntu 10.10
- How to Install Git on Ubuntu 12.04
- How to install GSL on ubuntu
- How to install Cacti on Ubuntu
- How to install eclipse on ubuntu/linux
- How to install pygame on ubuntu
- linux最小根文件系统制作简介
- 网络编程Winsock——connect
- 基于visual Studio2013解决C语言竞赛题之0613递归求积
- VS2008没有调试信息
- oracle AWR 报告 中文版
- How to install pyqt4 on ubuntu
- Android程序完全退出
- Velocity中的ComparisonDateTool、MathTool、NumberTool
- 嵌入式Linux下3G原理
- jaxb可以自定义序列化方式
- PHP文件操作之,插入某行,删除某行,获取行号
- Blktrace原理简介及使用
- uva 1428 - Ping pong
- OpenCV实现Matlab的fspecial('gaussian',m,sigma) 生成高斯核