查看完整版本: [-- 本书的源程序代码 --]

QTCN开发网 -> Python Qt GUI快速编程 -> 本书的源程序代码 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

yfx2003 2016-04-24 20:09

本书的源程序代码

由于原书作者的网站http://www.qtrac.eu/pyqtbook.html很难打开,所以将其放到这里方便大家学习之用。
[attachment=15047]



The source code, including mkpyqt.py and Make PyQt is available in two formats, pyqtbook.tar.gz (713K suitable for any platform), and pyqtbook.zip (909K Windows line endings) [updated 2011-02-15].
These examples have been tested with Python 2.5 and PyQt 4.2-4.6. (See the bottom of the page for Downloads (Python 2.6+) and Downloads (Python 3) and for information  PySide Porting.)
There is also an Errata [updated 2014-10-21].

yfx2003 2016-04-24 20:10
Although the examples work fine with both Python 2.5 and Python 2.6, I've created Python 2.6–specific versions that take some advantage of Python 2.6's Python 3–like features. The code is available in two formats, pyqtbook26.tar.gz (720K suitable for any platform), and pyqtbook26.zip (926K Windows line endings) [updated 2011-06-20  [attachment=15048]  ]. These examples have been tested on Linux with Python 2.6 and PyQt 4.4-4.6. There are also two new versions, pyqtbook27.tar.gz (720K suitable for any platform), and pyqtbook27.zip (933K Windows line endings) [updated 2014-05-06   [attachment=15049]  ]—these use the ‟new” nicer signal-slot and emit syntaxes introduced by PyQt 4.5, but are untested.

Mac users please note that PyQt does not seem to be buildable with Python 2.6 on Mac OS X, at least not for me and for some readers in the summer of 2009, so Mac users are recommended to use Python 2.5, or maybe try Python 3! (I have now heard from one reader who has successfully got PyQt working with Python 2.6 on his Mac. Essentially what he did was to change the /usr/locale/Qt4.6/mkspecs/default symbolic link to point directly to the compiler rather than Xcode—in his case to macx-g++40. In fact, since he was on a PowerPC rather than an x86-based Mac he also had to modify the qconfig.pri file's QT_CONFIG statement to remove x86. He then unpacked the PyQt Mac tarball and did the usual installation process and it worked. I haven't tried this myself and don't plan to—I'm switching exclusively to using Python 3 now.)

下载时候注意,链接在文字描述中。


hezf 2016-04-25 08:25
国内好像很少用Pythonqt的~

yfx2003 2016-05-08 15:54
请问你在用这个么?

huangsha 2016-11-05 12:33
怎么打不开

lush萌芽 2016-11-05 14:11
打不开,文件大小也不对啊~在吗?


查看完整版本: [-- 本书的源程序代码 --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled