开始Python之旅
来源:互联网 发布:裕津 知乎 编辑:程序博客网 时间:2024/05/21 21:34
参照
http://www.saltycrane.com/blog/2007/01/how-to-install-pyqt-41-python-25-and-qt_8340/
安装PyQT4环境。
Here are the steps to install and create a simple "Hello World" GUI application using PyQt 4.4, and Python 2.5, on Windows.
Install Python 2.5
- Go to http://www.python.org/download/ and click on "Python 2.5.x Windows installer"
- Save and run the Windows installer
- Go through the steps and accept the defaults.
Install the PyQt 4.4 bundle (including QT 4.4)
- Go to http://www.riverbankcomputing.co.uk/software/pyqt/download and select the "PyQt-Py2.5-gpl-4.4.2-1.exe" link.
- Save and run the file.
- Go through the steps and accept the defaults.
Run a "Hello World" application
- Go to "Start" -> "All Programs" -> "Python 2.5" -> "IDLE (Python GUI)"
- Open a new window ("File" -> "New window")
- Type the following code inside and save:
import sys
from PyQt4.QtGui import *
app = QApplication(sys.argv)
button = QPushButton("Hello World", None)
button.show()
app.exec_() - Hit "F5" to run. A window with a single push button should pop up.
For more examples, go to "Start" -> "All Programs" -> "PyQt GPL v4.4.2 for Python v2.5" > "Examples" > "PyQt Examples Source" (For a default installation, this is also located at C:/Python25/PyQt4/examples
.) To start, look in the "tutorial" directory.
安装Python 2.7和对应的PyQT4-Py2.7包成功,不再需要另装MinGW。
- 开始Python之旅!
- 开始Python之旅!
- 开始Python之旅
- 开始Python之旅
- 开始python 之旅
- 开始python之旅
- python 的发现之旅 开始
- Python的学习之旅---开始篇
- 开始自己的python学习之旅
- 01 开始Python数据分析之旅
- python,开始之路
- 开始python之路
- python之pygame 简单开始
- 终于忍不住,装上IDE开始Python之旅了
- python的学习之旅---开始篇(二)
- Python的学习之旅---开始篇(五)
- Python的学习之旅---开始篇(六)
- 开始我的Python之旅(一)
- 拉卡拉孙陶然:创业的36条军规
- C#通过一个密码对文件进行加密解密操作
- 软件开发如何趟过沟通管理的泥潭
- 在linux部署hornetq为系统服务
- Running Installations in Silent Mode
- 开始Python之旅
- Java Servlet规范
- 读取属性文件(.properties)的两种方法
- Java开发101109
- hello CSDN
- 路由器的硬件结构
- 在MFC中获取窗口句柄
- 浅析Linux源码:bootsect.s,setup.s,head.s
- JAVA 移位运算