Rapid GUI Programming with Python and Qt:
The Definitive Guide to PyQt Programming
by Mark Summerfield
ISBN: 0132354187
All the example programs and modules are copyright (c) Qtrac Ltd. 2007-8.
They are free software: you can redistribute them and/or modify them
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 2 of the License, or version 3
of the License, or (at your option) any later version. They are provided
for educational purposes and are distributed in the hope that they will
be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public Licenses (in files gpl-2.0.txt and gpl-3.0.txt) for more
details.
Two helper programs are provided: mkpyqt.py (a console application), and
makepyqt.pyw (a GUI application). These programs both do the same thing:
They run pyuic4, pyrcc4, pylupdate4, and lrelease with the correct
command line arguments. In some cases you may need to set the path to
pyuic4 (pyuic4.bat on Windows), and possibly to the other programs as
well. For mkpyqt.py this means editing the file itself (the paths are in
variables near the top); for makepyqt.pyw, click "More->Tool paths" and
set the paths there. The use of these programs is described in Chapter 7.
All the book's examples are designed to be educational, and many are
also designed to be useful. I hope that you find them helpful, and are
perhaps able to use some of them as starting points for your own
projects.
For commercial licenses visit http://www.trolltech.com for Qt, and
http://www.riverbankcomputing.co.uk for PyQt. Python itself can be
obtained from http://www.python.org and can be used for both commercial
and non-commercial purposes free of charge. See Appendix A for
information on obtaining and installing the necessary software.
Most of the icons are from KDE (The `K' Desktop Environment), and come
under KDE's LGPL license. (Visit http:///www.kde.org for more information.)
STOP PRESS
Chapter 3 describes an "OrderedDict". Unfortunately this name is
incorrect, it should have been called "SortedDict". (In Python mapping
terminology "ordered" means "order of insertion" and "sorted" means
"order of key"---I had used the C++ terminology.) I have kept the
wrongly named ordereddict.py module in the archive---after all, it works
fine---but also provided a correctly named SortedDict.py module that has
the same behavior, and that ought to be used instead. I have put a more
versatile (but theoretically slower) sorteddict module, with a different
API, on PyPI: http://pypi.python.org/pypi/sorteddict
Chapter 4. I've now added a new example, currency2.pyw that has one
extra line (to include Canadian dollars) and one line different (to sort
currency names case-insensitively) compared to currency.pyw. I've also
done a small theoretical improvement to the code.
Chapter 9 shows an SDI text editor (sditexteditor.pyw) that has a Window
menu in every main window with the list of all the application's
windows. This application's Window menu works on the basis of window
titles. But window titles may not be unique. For this reason I have now
added a new version (sditexteditor2.pyw) that has more sophisticated
updateWindowMenu() and raiseWindow() methods that use each window's
unique id() rather than their possibly non-unique window title.
Chapter 13 shows a PythonHighlighter (color syntax highlighting) class
in the pythoneditor.pyw and pythoneditor_ans.pyw applications. A
slightly more sophisticated version of this class is in my Sandbox
application. Sandbox is available from:
http://pypi.python.org/pypi/Sandbox
I have now added pythoneditor2.pyw which is a copy of
pythoneditor_ans.pyw but with the PythonHighlighter replaced with one
that uses similar logic as the one used in Sandbox since this works
better in more corner cases (but is slower).
I've also added printing2.pyw which has a bugfix and some tiny
improvements for both HTML and QPainter printing.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Python Gui编程的教程和源码 (556个子文件)
ships.dat 11KB
waterdata.csv.gz 191KB
surnames.txt.gz 15KB
filemenu_fr.html 789B
filemenu.html 749B
filemenu.html 749B
index_fr.html 557B
index.html 517B
index.html 517B
editmenu_fr.html 182B
editmenu.html 142B
editmenu.html 141B
iss013-e-14802.jpg 60KB
mymovies.mqb 14KB
Python and Qt for GUI.pdf 6.95MB
assetmanagersplash.png 7KB
phonelogsplash.png 6KB
a.png 6KB
logo.png 6KB
scribus.png 3KB
icon.png 2KB
icon.png 2KB
fileopen.png 2KB
fileopen.png 2KB
fileopen.png 2KB
fileopen.png 2KB
fileopen.png 2KB
clock.png 2KB
gvim.png 2KB
nedit.png 2KB
firefox.png 2KB
icon.png 2KB
abiword.png 2KB
opera.png 2KB
icon.png 2KB
editcut.png 2KB
editcut.png 2KB
emacs.png 2KB
icon.png 2KB
filesaveas.png 2KB
filesaveas.png 2KB
filesaveas.png 2KB
filesaveas.png 2KB
filesaveas.png 2KB
penguin.png 2KB
blender.png 2KB
mozilla.png 2KB
filenew.png 2KB
filenew.png 2KB
filenew.png 2KB
filenew.png 2KB
filenew.png 2KB
filequit.png 2KB
filequit.png 2KB
quit.png 2KB
filequit.png 2KB
filequit.png 2KB
filequit.png 2KB
usb.png 2KB
gnumeric.png 2KB
vnc.png 2KB
tux.png 2KB
home.png 2KB
home.png 2KB
editzoom.png 2KB
editzoom.png 2KB
kwin.png 2KB
next.png 2KB
fileprint.png 2KB
fileprint.png 2KB
back.png 2KB
back.png 2KB
prev.png 2KB
first.png 2KB
editunindent.png 2KB
last.png 2KB
editindent.png 2KB
delete.png 1KB
editdelete.png 1KB
editdelete.png 1KB
editdelete.png 1KB
editpaste.png 1KB
editpaste.png 1KB
editedit.png 1KB
editedit.png 1KB
editedit.png 1KB
filesave.png 1KB
filesave.png 1KB
filesave.png 1KB
filesave.png 1KB
filesave.png 1KB
add.png 1KB
editadd.png 1KB
editadd.png 1KB
editadd.png 1KB
x.png 1KB
USA_Maryland.png 1KB
USA_Rhode_Island.png 1KB
USA_Arkansas.png 897B
editcopy.png 879B
共 556 条
- 1
- 2
- 3
- 4
- 5
- 6
资源评论
「已注销」
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功