• 8986阅读
  • 5回复

本书的源程序代码 [复制链接]

上一主题 下一主题
离线yfx2003
 

只看楼主 倒序阅读 楼主  发表于: 2016-04-24
由于原书作者的网站http://www.qtrac.eu/pyqtbook.html很难打开,所以将其放到这里方便大家学习之用。
随书例题 pyqtbook.zip (909 K) 下载次数:1158



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].
www.qtcn.org/gpq4/
ajaxref.okajax.com/
离线yfx2003

只看该作者 1楼 发表于: 2016-04-24
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  pyqtbook26.rar pyqtbook26.tar.tar.rar (720 K) 下载次数:26   ]. 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   pyqtbook27.rar pyqtbook27.tar.tar.rar (720 K) 下载次数:117   ]—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.)

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

www.qtcn.org/gpq4/
ajaxref.okajax.com/
离线hezf

只看该作者 2楼 发表于: 2016-04-25
国内好像很少用Pythonqt的~
none
离线yfx2003

只看该作者 3楼 发表于: 2016-05-08
请问你在用这个么?
www.qtcn.org/gpq4/
ajaxref.okajax.com/
离线huangsha

只看该作者 4楼 发表于: 2016-11-05
怎么打不开
离线lush萌芽

只看该作者 5楼 发表于: 2016-11-05
打不开,文件大小也不对啊~在吗?
快速回复
限100 字节
 
上一个 下一个